Fixed a bug on the modify record form where updating an existing row's ad item wouldn't mark the other APC tables as dirty.
This commit is contained in:
@@ -647,14 +647,11 @@ namespace AdvertsingProfitControl
|
||||
|
||||
private void modifyRecordMainMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
//var modifyForm = new FrmModifyRecord();
|
||||
//modifyForm.ShowDialog();
|
||||
var modifyForm = new FrmModifyRecord();
|
||||
modifyForm.ShowDialog();
|
||||
//BuildAndFillDataGridTables();
|
||||
//CalculateProfitAnalysis();
|
||||
//CalculateGrossProfit();
|
||||
var date = DateTime.Parse(monthComboBox.SelectedItem + @"/" + dayComboBox.SelectedItem + @"/" + yearComboBox.SelectedItem);
|
||||
var form = new NewModifyRecord(date);
|
||||
form.ShowDialog();
|
||||
}
|
||||
|
||||
private void manageItemsToolsMainMenu_Click(object sender, EventArgs e)
|
||||
@@ -761,6 +758,13 @@ namespace AdvertsingProfitControl
|
||||
form.ShowDialog();
|
||||
|
||||
}
|
||||
|
||||
private void newModifyRecordToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var date = DateTime.Parse(monthComboBox.SelectedItem + @"/" + dayComboBox.SelectedItem + @"/" + yearComboBox.SelectedItem);
|
||||
var form = new NewModifyRecord(date);
|
||||
form.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
//http://stackoverflow.com/questions/487661/how-do-i-suspend-painting-for-a-control-and-its-children
|
||||
|
||||
Reference in New Issue
Block a user