Esempio n. 1
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			Contact ContactCur=new Contact();
			ContactCur.Category=DefC.Short[(int)DefCat.ContactCategories][listCategory.SelectedIndex].DefNum;
			FormContactEdit FormCE=new FormContactEdit();
			FormCE.ContactCur=ContactCur;
			FormCE.IsNew=true;
			FormCE.ShowDialog();
			if(FormCE.DialogResult==DialogResult.OK)
				FillGrid();
		}
Esempio n. 2
0
		private void tbContacts_CellDoubleClicked(object sender, CellEventArgs e){
			FormContactEdit FormCE=new FormContactEdit();
			FormCE.ContactCur=ContactList[e.Row];
			FormCE.ShowDialog();
			if(FormCE.DialogResult==DialogResult.OK)
				FillGrid();
		}