Updated the ad item manager form to allow the user to replace one item with another item. Fixed a crash bug in the Global Class logger functions.

This commit is contained in:
2017-07-12 16:40:41 -05:00
parent fd47690224
commit 3b36476a6c
5 changed files with 250 additions and 59 deletions
+49 -33
View File
@@ -39,15 +39,17 @@
this.informationLabel = new System.Windows.Forms.Label();
this.filterLabel = new System.Windows.Forms.Label();
this.filterComboBox = new System.Windows.Forms.ComboBox();
this.replaceReferencesButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// adItemsListView
//
this.adItemsListView.Location = new System.Drawing.Point(141, 7);
this.adItemsListView.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.adItemsListView.Location = new System.Drawing.Point(259, 13);
this.adItemsListView.Margin = new System.Windows.Forms.Padding(4);
this.adItemsListView.MultiSelect = false;
this.adItemsListView.Name = "adItemsListView";
this.adItemsListView.Size = new System.Drawing.Size(248, 235);
this.adItemsListView.Size = new System.Drawing.Size(451, 430);
this.adItemsListView.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.adItemsListView.TabIndex = 3;
this.adItemsListView.TabStop = false;
this.adItemsListView.UseCompatibleStateImageBehavior = false;
@@ -56,10 +58,10 @@
// addUpdateItemButton
//
this.addUpdateItemButton.Enabled = false;
this.addUpdateItemButton.Location = new System.Drawing.Point(276, 243);
this.addUpdateItemButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.addUpdateItemButton.Location = new System.Drawing.Point(506, 449);
this.addUpdateItemButton.Margin = new System.Windows.Forms.Padding(4);
this.addUpdateItemButton.Name = "addUpdateItemButton";
this.addUpdateItemButton.Size = new System.Drawing.Size(109, 38);
this.addUpdateItemButton.Size = new System.Drawing.Size(200, 70);
this.addUpdateItemButton.TabIndex = 3;
this.addUpdateItemButton.Text = "Add New Item";
this.addUpdateItemButton.UseVisualStyleBackColor = true;
@@ -68,10 +70,10 @@
// removeAdItemButton
//
this.removeAdItemButton.Enabled = false;
this.removeAdItemButton.Location = new System.Drawing.Point(7, 243);
this.removeAdItemButton.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.removeAdItemButton.Location = new System.Drawing.Point(13, 449);
this.removeAdItemButton.Margin = new System.Windows.Forms.Padding(4);
this.removeAdItemButton.Name = "removeAdItemButton";
this.removeAdItemButton.Size = new System.Drawing.Size(109, 38);
this.removeAdItemButton.Size = new System.Drawing.Size(200, 70);
this.removeAdItemButton.TabIndex = 4;
this.removeAdItemButton.Text = "Remove Selected Item";
this.removeAdItemButton.UseVisualStyleBackColor = true;
@@ -79,58 +81,58 @@
//
// newItemTextBox
//
this.newItemTextBox.Location = new System.Drawing.Point(2, 22);
this.newItemTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.newItemTextBox.Location = new System.Drawing.Point(4, 41);
this.newItemTextBox.Margin = new System.Windows.Forms.Padding(4);
this.newItemTextBox.MaxLength = 32;
this.newItemTextBox.Name = "newItemTextBox";
this.newItemTextBox.Size = new System.Drawing.Size(111, 20);
this.newItemTextBox.Size = new System.Drawing.Size(247, 29);
this.newItemTextBox.TabIndex = 1;
//
// descriptionTextBox
//
this.descriptionTextBox.Location = new System.Drawing.Point(2, 69);
this.descriptionTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.descriptionTextBox.Location = new System.Drawing.Point(4, 127);
this.descriptionTextBox.Margin = new System.Windows.Forms.Padding(4);
this.descriptionTextBox.MaxLength = 128;
this.descriptionTextBox.Name = "descriptionTextBox";
this.descriptionTextBox.Size = new System.Drawing.Size(111, 20);
this.descriptionTextBox.Size = new System.Drawing.Size(247, 29);
this.descriptionTextBox.TabIndex = 2;
//
// newItemLabel
//
this.newItemLabel.AutoSize = true;
this.newItemLabel.Location = new System.Drawing.Point(2, 7);
this.newItemLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.newItemLabel.Location = new System.Drawing.Point(4, 13);
this.newItemLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.newItemLabel.Name = "newItemLabel";
this.newItemLabel.Size = new System.Drawing.Size(113, 13);
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(2, 54);
this.descriptionLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.descriptionLabel.Location = new System.Drawing.Point(4, 100);
this.descriptionLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.descriptionLabel.Name = "descriptionLabel";
this.descriptionLabel.Size = new System.Drawing.Size(111, 13);
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(4, 119);
this.informationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.informationLabel.Location = new System.Drawing.Point(8, 271);
this.informationLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.informationLabel.Name = "informationLabel";
this.informationLabel.Size = new System.Drawing.Size(0, 13);
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(2, 103);
this.filterLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.filterLabel.Location = new System.Drawing.Point(4, 190);
this.filterLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.filterLabel.Name = "filterLabel";
this.filterLabel.Size = new System.Drawing.Size(61, 13);
this.filterLabel.Size = new System.Drawing.Size(115, 25);
this.filterLabel.TabIndex = 8;
this.filterLabel.Text = "Apply Filter:";
//
@@ -138,18 +140,31 @@
//
this.filterComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.filterComboBox.FormattingEnabled = true;
this.filterComboBox.Location = new System.Drawing.Point(2, 118);
this.filterComboBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.filterComboBox.Location = new System.Drawing.Point(4, 219);
this.filterComboBox.Margin = new System.Windows.Forms.Padding(4);
this.filterComboBox.Name = "filterComboBox";
this.filterComboBox.Size = new System.Drawing.Size(111, 21);
this.filterComboBox.Size = new System.Drawing.Size(200, 32);
this.filterComboBox.TabIndex = 9;
this.filterComboBox.TabStop = false;
//
// replaceReferencesButton
//
this.replaceReferencesButton.Enabled = false;
this.replaceReferencesButton.Location = new System.Drawing.Point(259, 449);
this.replaceReferencesButton.Margin = new System.Windows.Forms.Padding(4);
this.replaceReferencesButton.Name = "replaceReferencesButton";
this.replaceReferencesButton.Size = new System.Drawing.Size(200, 70);
this.replaceReferencesButton.TabIndex = 10;
this.replaceReferencesButton.Text = "Replace References With...";
this.replaceReferencesButton.UseVisualStyleBackColor = true;
this.replaceReferencesButton.Click += new System.EventHandler(this.FlagFormReplaceRefrence);
//
// FrmManageAdItems
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(394, 288);
this.ClientSize = new System.Drawing.Size(722, 532);
this.Controls.Add(this.replaceReferencesButton);
this.Controls.Add(this.filterComboBox);
this.Controls.Add(this.filterLabel);
this.Controls.Add(this.informationLabel);
@@ -162,7 +177,7 @@
this.Controls.Add(this.adItemsListView);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "FrmManageAdItems";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Manage Ad Items";
@@ -183,5 +198,6 @@
private System.Windows.Forms.Label informationLabel;
private System.Windows.Forms.Label filterLabel;
private System.Windows.Forms.ComboBox filterComboBox;
private System.Windows.Forms.Button replaceReferencesButton;
}
}