Marked as 'AdvertsingProfitControl (New Add Form)' by its folder name. I think this was one of the first appearences of a modify record form, however I may have gotten the order mixed up here with the previous commit. Reguardless, this version still introduced the first appearence of a new 'Modify Record' form.

This commit is contained in:
2021-01-28 20:02:35 -06:00
parent 21eaae4d67
commit 676a9dd890
24 changed files with 7495 additions and 491 deletions
+17 -8
View File
@@ -567,7 +567,7 @@ namespace AdvertsingProfitControl
{
customAutoComplete.Add(item);
}
autoText.KeyPress += AutoText_KeyPress;
autoText.KeyDown += AutoText_KeyPress;
_CustomAdItemCollection = customAutoComplete; //Make a temporary copy of the list for use with the TextBox event handler.
autoText.AutoCompleteMode = AutoCompleteMode.Suggest;
autoText.AutoCompleteSource = AutoCompleteSource.CustomSource;
@@ -579,20 +579,29 @@ namespace AdvertsingProfitControl
}
}//End DisplayAutoCompleteOnEditingControlShowing
private void AutoText_KeyPress(object sender, KeyPressEventArgs e)
private void AutoText_KeyPress(object sender, KeyEventArgs e)
{
var textBox = (TextBox) sender;
var textBox = (TextBox)sender;
errorReportingLabel.Text = "";
if (e.KeyChar == ':' && textBox.Text.Length == 0)
if (e.Modifiers == Keys.Shift && e.KeyCode == Keys.Up)
{
textBox.AutoCompleteCustomSource = _AdSpecialList;
errorReportingLabel.Text = "Auto complete mode changed to Ad Special.";
if (_gAdSpecialIndex == -1)
{
textBox.AutoCompleteCustomSource = _AdSpecialList;
errorReportingLabel.Text = "Auto complete mode changed to Ad Special.";
}
else
{
errorReportingLabel.Text = "An Ad Special row already exists, auto complete mode\n can not be changed.";
}
}
else if (e.KeyChar == ';' && textBox.Text.Length == 0)
else if (e.Modifiers == Keys.Shift && e.KeyCode == Keys.Down)
{
textBox.AutoCompleteCustomSource = _CustomAdItemCollection;
errorReportingLabel.Text = "Auto complete mode changed to Ad Items only.";
errorReportingLabel.Text = "Auto complete mode changed to Ad Items.";
}
e.Handled = false;
}
/// <summary>