void InsertData(DatFileReader reader, Button b) { int i = GraphTabControl.SelectedIndex; if (b == CorneringTableAddButton) { TempRTDM.InsertData(reader.DataList, Table.CorneringTable); GraphTabControl.SelectedIndex = 0; } if (b == DriveBrakeTableAddButton) { TempRTDM.InsertData(reader.DataList, Table.DriveBrakeTable); GraphTabControl.SelectedIndex = 1; } if (b == TransientTableAddButton) { TempRTDM.InsertData(reader.DataList, Table.TransientTable); GraphTabControl.SelectedIndex = 2; } if (i == GraphTabControl.SelectedIndex) { ShowSelectedGraph(true); } this.State = PropertyPageState.Changed; }
public override void OnApplyClick() { if (Rename != null) { Rename(TireNameTextBox.Text); } RTDM.InsertData(TempRTDM); TempRTDM = new RawTireDataManager(); ShowSelectedGraph(); this.State = PropertyPageState.NotChanged; }