private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e)
        {
            FormAutomationEdit FormA = new FormAutomationEdit(_listAutomations[e.Row]);

            FormA.ShowDialog();
            FillGrid();
            changed = true;
        }
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            Automation auto = new Automation();

            Automations.Insert(auto);            //so that we can attach conditions
            FormAutomationEdit FormA = new FormAutomationEdit(auto);

            FormA.IsNew = true;
            FormA.ShowDialog();
            if (FormA.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
            changed = true;
        }
		private void butAdd_Click(object sender, System.EventArgs e) {
			Automation auto=new Automation();
			Automations.Insert(auto);//so that we can attach conditions
			FormAutomationEdit FormA=new FormAutomationEdit(auto);
			FormA.IsNew=true;
			FormA.ShowDialog();
			if(FormA.DialogResult!=DialogResult.OK){
				return;
			}
			FillGrid();
			changed=true;
		}
		private void gridMain_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			FormAutomationEdit FormA=new FormAutomationEdit(Automations.Listt[e.Row]);
			FormA.ShowDialog();
			FillGrid();
			changed=true;
		}