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:
2017-01-17 14:15:21 -06:00
parent c9d8186d75
commit 2b3c234aaa
7 changed files with 237 additions and 26 deletions
+9 -5
View File
@@ -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