Example #1
0
        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;
        }
Example #2
0
		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;
		}
Example #3
0
		private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			FormApptRuleEdit FormA=new FormApptRuleEdit(AppointmentRuleC.List[e.Row]);
			FormA.ShowDialog();
			FillGrid();
			changed=true;
		}