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:
+151
@@ -0,0 +1,151 @@
|
||||
namespace AdvertsingProfitControl
|
||||
{
|
||||
partial class FrmManageSuppliers
|
||||
{
|
||||
/// <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.suppliersListBox = new System.Windows.Forms.ListView();
|
||||
this.descriptionTextBox = new System.Windows.Forms.TextBox();
|
||||
this.descriptionLabel = new System.Windows.Forms.Label();
|
||||
this.informationLabel = new System.Windows.Forms.Label();
|
||||
this.newSupplierTextBox = new System.Windows.Forms.TextBox();
|
||||
this.newSupplierLabel = new System.Windows.Forms.Label();
|
||||
this.deleteSupplierButton = new System.Windows.Forms.Button();
|
||||
this.registerSupplierButton = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// suppliersListBox
|
||||
//
|
||||
this.suppliersListBox.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
|
||||
this.suppliersListBox.Location = new System.Drawing.Point(257, 12);
|
||||
this.suppliersListBox.Name = "suppliersListBox";
|
||||
this.suppliersListBox.Size = new System.Drawing.Size(423, 412);
|
||||
this.suppliersListBox.TabIndex = 16;
|
||||
this.suppliersListBox.TabStop = false;
|
||||
this.suppliersListBox.UseCompatibleStateImageBehavior = false;
|
||||
this.suppliersListBox.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// descriptionTextBox
|
||||
//
|
||||
this.descriptionTextBox.Location = new System.Drawing.Point(14, 115);
|
||||
this.descriptionTextBox.MaxLength = 128;
|
||||
this.descriptionTextBox.Name = "descriptionTextBox";
|
||||
this.descriptionTextBox.Size = new System.Drawing.Size(228, 29);
|
||||
this.descriptionTextBox.TabIndex = 2;
|
||||
//
|
||||
// descriptionLabel
|
||||
//
|
||||
this.descriptionLabel.AutoSize = true;
|
||||
this.descriptionLabel.Location = new System.Drawing.Point(14, 82);
|
||||
this.descriptionLabel.Name = "descriptionLabel";
|
||||
this.descriptionLabel.Size = new System.Drawing.Size(207, 25);
|
||||
this.descriptionLabel.TabIndex = 15;
|
||||
this.descriptionLabel.Text = "Description (Optional):";
|
||||
//
|
||||
// informationLabel
|
||||
//
|
||||
this.informationLabel.AutoSize = true;
|
||||
this.informationLabel.Location = new System.Drawing.Point(14, 162);
|
||||
this.informationLabel.Name = "informationLabel";
|
||||
this.informationLabel.Size = new System.Drawing.Size(0, 25);
|
||||
this.informationLabel.TabIndex = 14;
|
||||
//
|
||||
// newSupplierTextBox
|
||||
//
|
||||
this.newSupplierTextBox.Location = new System.Drawing.Point(14, 45);
|
||||
this.newSupplierTextBox.MaxLength = 32;
|
||||
this.newSupplierTextBox.Name = "newSupplierTextBox";
|
||||
this.newSupplierTextBox.Size = new System.Drawing.Size(228, 29);
|
||||
this.newSupplierTextBox.TabIndex = 1;
|
||||
//
|
||||
// newSupplierLabel
|
||||
//
|
||||
this.newSupplierLabel.AutoSize = true;
|
||||
this.newSupplierLabel.Location = new System.Drawing.Point(14, 12);
|
||||
this.newSupplierLabel.Name = "newSupplierLabel";
|
||||
this.newSupplierLabel.Size = new System.Drawing.Size(166, 25);
|
||||
this.newSupplierLabel.TabIndex = 11;
|
||||
this.newSupplierLabel.Text = "Register Supplier:";
|
||||
//
|
||||
// deleteSupplierButton
|
||||
//
|
||||
this.deleteSupplierButton.Enabled = false;
|
||||
this.deleteSupplierButton.Location = new System.Drawing.Point(12, 430);
|
||||
this.deleteSupplierButton.Name = "deleteSupplierButton";
|
||||
this.deleteSupplierButton.Size = new System.Drawing.Size(200, 50);
|
||||
this.deleteSupplierButton.TabIndex = 4;
|
||||
this.deleteSupplierButton.Text = "Remove Supplier";
|
||||
this.deleteSupplierButton.UseVisualStyleBackColor = true;
|
||||
this.deleteSupplierButton.Click += new System.EventHandler(this.deleteSupplierButton_Click);
|
||||
//
|
||||
// registerSupplierButton
|
||||
//
|
||||
this.registerSupplierButton.Enabled = false;
|
||||
this.registerSupplierButton.Location = new System.Drawing.Point(480, 430);
|
||||
this.registerSupplierButton.Name = "registerSupplierButton";
|
||||
this.registerSupplierButton.Size = new System.Drawing.Size(200, 50);
|
||||
this.registerSupplierButton.TabIndex = 3;
|
||||
this.registerSupplierButton.Text = "Register Supplier";
|
||||
this.registerSupplierButton.UseVisualStyleBackColor = true;
|
||||
this.registerSupplierButton.Click += new System.EventHandler(this.registerSupplierButton_Click);
|
||||
//
|
||||
// FrmManageSuppliers
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(692, 492);
|
||||
this.Controls.Add(this.suppliersListBox);
|
||||
this.Controls.Add(this.descriptionTextBox);
|
||||
this.Controls.Add(this.descriptionLabel);
|
||||
this.Controls.Add(this.informationLabel);
|
||||
this.Controls.Add(this.newSupplierTextBox);
|
||||
this.Controls.Add(this.newSupplierLabel);
|
||||
this.Controls.Add(this.deleteSupplierButton);
|
||||
this.Controls.Add(this.registerSupplierButton);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FrmManageSuppliers";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Manage Suppliers";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ListView suppliersListBox;
|
||||
private System.Windows.Forms.TextBox descriptionTextBox;
|
||||
private System.Windows.Forms.Label descriptionLabel;
|
||||
private System.Windows.Forms.Label informationLabel;
|
||||
private System.Windows.Forms.TextBox newSupplierTextBox;
|
||||
private System.Windows.Forms.Label newSupplierLabel;
|
||||
private System.Windows.Forms.Button deleteSupplierButton;
|
||||
private System.Windows.Forms.Button registerSupplierButton;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user