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:
@@ -972,7 +972,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
//Create a temporary copy of the trimmed ad item auto complete list for use with the key press event.
|
||||
_tempAdItemCollection = customAutoComplete;
|
||||
autoText.KeyPress += UpdateAutoCompleteListOnKeyPress;
|
||||
autoText.KeyDown += UpdateAutoCompleteListOnKeyPress;
|
||||
autoText.AutoCompleteMode = AutoCompleteMode.Suggest;
|
||||
autoText.AutoCompleteSource = AutoCompleteSource.CustomSource;
|
||||
autoText.AutoCompleteCustomSource = customAutoComplete;
|
||||
@@ -983,23 +983,24 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
}//End DisplayAutoCompleteOnEditingControlShowing
|
||||
|
||||
private void UpdateAutoCompleteListOnKeyPress(object sender, KeyPressEventArgs e)
|
||||
private void UpdateAutoCompleteListOnKeyPress(object sender, KeyEventArgs e)
|
||||
{
|
||||
var textBox = (TextBox) sender;
|
||||
notificationLabel.Text = "";
|
||||
if (e.KeyChar == ':' && textBox.Text.Length == 0)
|
||||
|
||||
if (e.Modifiers == Keys.Shift && e.KeyCode == Keys.Up)
|
||||
{
|
||||
if (_adSpecialIndex == -1)
|
||||
{
|
||||
textBox.AutoCompleteCustomSource = _adSpecialList;
|
||||
notificationLabel.Text = "Auto complete mode changed to Ad Special.";
|
||||
notificationLabel.Text = "Auto complete mode changed to Ad Special.";
|
||||
}
|
||||
else
|
||||
{
|
||||
notificationLabel.Text = "An Ad Special row already exists, auto complete mode\n can not be changed.";
|
||||
notificationLabel.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 = _tempAdItemCollection;
|
||||
notificationLabel.Text = "Auto complete mode changed to Ad Items.";
|
||||
|
||||
Reference in New Issue
Block a user