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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user