Example #1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            ApptFieldDef         def   = new ApptFieldDef();
            FormApptFieldDefEdit FormP = new FormApptFieldDefEdit(def);

            FormP.IsNew = true;
            FormP.ShowDialog();
            FillGrid();
        }
Example #2
0
        private void listMain_DoubleClick(object sender, System.EventArgs e)
        {
            if (listMain.SelectedIndex == -1)
            {
                return;
            }
            FormApptFieldDefEdit FormP = new FormApptFieldDefEdit(_listApptFieldDefs[listMain.SelectedIndex]);

            FormP.ShowDialog();
            if (FormP.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
		private void butAdd_Click(object sender, System.EventArgs e) {
			ApptFieldDef def=new ApptFieldDef();
			FormApptFieldDefEdit FormP=new FormApptFieldDefEdit(def);
			FormP.IsNew=true;
			FormP.ShowDialog();
			FillGrid();
		}
		private void listMain_DoubleClick(object sender, System.EventArgs e) {
			if(listMain.SelectedIndex==-1){
				return;
			}
			FormApptFieldDefEdit FormP=new FormApptFieldDefEdit(ApptFieldDefs.Listt[listMain.SelectedIndex]);
			FormP.ShowDialog();
			if(FormP.DialogResult!=DialogResult.OK)
				return;
			FillGrid();
		}