private void CutDataManager_CancelClick(object sender, EventArgs e) { if (tabControlEx1.SelectedIndex == 0) { if (saved) { SaveCutGroupData(); if (rePair && File.Exists(FilePath)) { string s = Data.Serialize.XmlSerialize(CutGroupData); File.WriteAllText(FilePath, s); if (FilePath == Globals.AppCfg.CutFileFullName) { Globals.Group = CutGroupData; } } saved = false; } if (this.ParentForm != null) { ParentForm.OnCancelClick(); } } else { if (tabControlEx1.SelectedIndex == 1) { tabControlEx1.SelectedIndex = 0; BT4Content = "高级参数"; } } }
private void CancelButton_Click(object sender, EventArgs e) { if (ParentForm != null) { ParentForm.OnCancelClick(); } }
private void AnySegmentManager_CancelClick(object sender, EventArgs e) { if (repair & saved) { SaveChannelDataValue(ch); //保存当前通道值 RemoveUnValidData(); //移除无效的通道 } else { RemoveUnValidData(false);//移除无效控件到进入时候的状态 } for (int i = 0; i < 4; i++) { this.UnderBar.BtList[i].Enabled = true; } ParentForm.OnCancelClick(); }