private void butAdd_Click(object sender, System.EventArgs e) { AppointmentRule aptRule = new AppointmentRule(); aptRule.IsEnabled = true; FormApptRuleEdit FormA = new FormApptRuleEdit(aptRule); FormA.IsNew = true; FormA.ShowDialog(); if (FormA.DialogResult == DialogResult.Cancel) { return; } FillGrid(); changed = true; }
private void butAdd_Click(object sender, System.EventArgs e) { AppointmentRule aptRule=new AppointmentRule(); aptRule.IsEnabled=true; FormApptRuleEdit FormA=new FormApptRuleEdit(aptRule); FormA.IsNew=true; FormA.ShowDialog(); if(FormA.DialogResult==DialogResult.Cancel){ return; } FillGrid(); changed=true; }
private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) { FormApptRuleEdit FormA=new FormApptRuleEdit(AppointmentRuleC.List[e.Row]); FormA.ShowDialog(); FillGrid(); changed=true; }