private void dataTable2_RowChanged(object sender, DataRowChangeEventArgs e) { // transfer the changes to the snapshot table if (e.Action == DataRowAction.Change && selSrez != null) { DataRow row = e.Row; int cnlNum = (int)row["CnlNum"]; SrezTable.CnlData cnlData = new SrezTableLight.CnlData((double)row["Val"], (int)row["Stat"]); selSrez.SetCnlData(cnlNum, cnlData); srezTable.MarkSrezAsModified(selSrez); } }
private void dataTable2_RowChanged(object sender, DataRowChangeEventArgs e) { // перенос изменений в таблицу срезов if (e.Action == DataRowAction.Change && selSrez != null) { DataRow row = e.Row; int cnlNum = (int)row["CnlNum"]; SrezTable.CnlData cnlData = new SrezTableLight.CnlData((double)row["Val"], (int)row["Stat"]); selSrez.SetCnlData(cnlNum, cnlData); srezTable.MarkSrezAsModified(selSrez); } }