Created forms to allow the management of ad items, suppliers and ad special keywords. Updated the database migration tool to include the ad special table. Cleaned up the main form's code and did a slight touch up of the interface.
This commit is contained in:
+173
@@ -0,0 +1,173 @@
|
||||
namespace AdvertsingProfitControl
|
||||
{
|
||||
partial class FrmManageAdItems
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.adItemsListView = new System.Windows.Forms.ListView();
|
||||
this.addUpdateItemButton = new System.Windows.Forms.Button();
|
||||
this.removeAdItemButton = new System.Windows.Forms.Button();
|
||||
this.newItemTextBox = new System.Windows.Forms.TextBox();
|
||||
this.descriptionTextBox = new System.Windows.Forms.TextBox();
|
||||
this.newItemLabel = new System.Windows.Forms.Label();
|
||||
this.descriptionLabel = new System.Windows.Forms.Label();
|
||||
this.informationLabel = new System.Windows.Forms.Label();
|
||||
this.filterLabel = new System.Windows.Forms.Label();
|
||||
this.filterComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// adItemsListView
|
||||
//
|
||||
this.adItemsListView.Location = new System.Drawing.Point(258, 12);
|
||||
this.adItemsListView.Name = "adItemsListView";
|
||||
this.adItemsListView.Size = new System.Drawing.Size(452, 431);
|
||||
this.adItemsListView.TabIndex = 3;
|
||||
this.adItemsListView.TabStop = false;
|
||||
this.adItemsListView.UseCompatibleStateImageBehavior = false;
|
||||
this.adItemsListView.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// addUpdateItemButton
|
||||
//
|
||||
this.addUpdateItemButton.Enabled = false;
|
||||
this.addUpdateItemButton.Location = new System.Drawing.Point(506, 449);
|
||||
this.addUpdateItemButton.Name = "addUpdateItemButton";
|
||||
this.addUpdateItemButton.Size = new System.Drawing.Size(200, 70);
|
||||
this.addUpdateItemButton.TabIndex = 3;
|
||||
this.addUpdateItemButton.Text = "Add New Item";
|
||||
this.addUpdateItemButton.UseVisualStyleBackColor = true;
|
||||
this.addUpdateItemButton.Click += new System.EventHandler(this.AddUpdateItem);
|
||||
//
|
||||
// removeAdItemButton
|
||||
//
|
||||
this.removeAdItemButton.Enabled = false;
|
||||
this.removeAdItemButton.Location = new System.Drawing.Point(13, 449);
|
||||
this.removeAdItemButton.Name = "removeAdItemButton";
|
||||
this.removeAdItemButton.Size = new System.Drawing.Size(200, 70);
|
||||
this.removeAdItemButton.TabIndex = 4;
|
||||
this.removeAdItemButton.Text = "Remove Selected Item";
|
||||
this.removeAdItemButton.UseVisualStyleBackColor = true;
|
||||
this.removeAdItemButton.Click += new System.EventHandler(this.RemoveSelectedAdItem);
|
||||
//
|
||||
// newItemTextBox
|
||||
//
|
||||
this.newItemTextBox.Location = new System.Drawing.Point(13, 55);
|
||||
this.newItemTextBox.MaxLength = 32;
|
||||
this.newItemTextBox.Name = "newItemTextBox";
|
||||
this.newItemTextBox.Size = new System.Drawing.Size(200, 29);
|
||||
this.newItemTextBox.TabIndex = 1;
|
||||
//
|
||||
// descriptionTextBox
|
||||
//
|
||||
this.descriptionTextBox.Location = new System.Drawing.Point(13, 115);
|
||||
this.descriptionTextBox.MaxLength = 128;
|
||||
this.descriptionTextBox.Name = "descriptionTextBox";
|
||||
this.descriptionTextBox.Size = new System.Drawing.Size(200, 29);
|
||||
this.descriptionTextBox.TabIndex = 2;
|
||||
//
|
||||
// newItemLabel
|
||||
//
|
||||
this.newItemLabel.AutoSize = true;
|
||||
this.newItemLabel.Location = new System.Drawing.Point(12, 27);
|
||||
this.newItemLabel.Name = "newItemLabel";
|
||||
this.newItemLabel.Size = new System.Drawing.Size(205, 25);
|
||||
this.newItemLabel.TabIndex = 5;
|
||||
this.newItemLabel.Text = "Register New Ad Item:";
|
||||
//
|
||||
// descriptionLabel
|
||||
//
|
||||
this.descriptionLabel.AutoSize = true;
|
||||
this.descriptionLabel.Location = new System.Drawing.Point(12, 87);
|
||||
this.descriptionLabel.Name = "descriptionLabel";
|
||||
this.descriptionLabel.Size = new System.Drawing.Size(207, 25);
|
||||
this.descriptionLabel.TabIndex = 6;
|
||||
this.descriptionLabel.Text = "Description (Optional):";
|
||||
//
|
||||
// informationLabel
|
||||
//
|
||||
this.informationLabel.AutoSize = true;
|
||||
this.informationLabel.Location = new System.Drawing.Point(8, 219);
|
||||
this.informationLabel.Name = "informationLabel";
|
||||
this.informationLabel.Size = new System.Drawing.Size(0, 25);
|
||||
this.informationLabel.TabIndex = 7;
|
||||
//
|
||||
// filterLabel
|
||||
//
|
||||
this.filterLabel.AutoSize = true;
|
||||
this.filterLabel.Location = new System.Drawing.Point(12, 147);
|
||||
this.filterLabel.Name = "filterLabel";
|
||||
this.filterLabel.Size = new System.Drawing.Size(115, 25);
|
||||
this.filterLabel.TabIndex = 8;
|
||||
this.filterLabel.Text = "Apply Filter:";
|
||||
//
|
||||
// filterComboBox
|
||||
//
|
||||
this.filterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.filterComboBox.FormattingEnabled = true;
|
||||
this.filterComboBox.Location = new System.Drawing.Point(13, 175);
|
||||
this.filterComboBox.Name = "filterComboBox";
|
||||
this.filterComboBox.Size = new System.Drawing.Size(200, 32);
|
||||
this.filterComboBox.TabIndex = 9;
|
||||
this.filterComboBox.TabStop = false;
|
||||
//
|
||||
// FrmManageAdItems
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(722, 532);
|
||||
this.Controls.Add(this.filterComboBox);
|
||||
this.Controls.Add(this.filterLabel);
|
||||
this.Controls.Add(this.informationLabel);
|
||||
this.Controls.Add(this.descriptionLabel);
|
||||
this.Controls.Add(this.newItemLabel);
|
||||
this.Controls.Add(this.descriptionTextBox);
|
||||
this.Controls.Add(this.newItemTextBox);
|
||||
this.Controls.Add(this.removeAdItemButton);
|
||||
this.Controls.Add(this.addUpdateItemButton);
|
||||
this.Controls.Add(this.adItemsListView);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
|
||||
this.Name = "FrmManageAdItems";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Manage Ad Items";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListView adItemsListView;
|
||||
private System.Windows.Forms.Button addUpdateItemButton;
|
||||
private System.Windows.Forms.Button removeAdItemButton;
|
||||
private System.Windows.Forms.TextBox newItemTextBox;
|
||||
private System.Windows.Forms.TextBox descriptionTextBox;
|
||||
private System.Windows.Forms.Label newItemLabel;
|
||||
private System.Windows.Forms.Label descriptionLabel;
|
||||
private System.Windows.Forms.Label informationLabel;
|
||||
private System.Windows.Forms.Label filterLabel;
|
||||
private System.Windows.Forms.ComboBox filterComboBox;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user