Ejemplo n.º 1
0
		private void butAdd_Click(object sender, System.EventArgs e) {
			ClaimForm ClaimFormCur=new ClaimForm();
			ClaimForms.Insert(ClaimFormCur);
			FormClaimFormEdit FormCFE=new FormClaimFormEdit();
			FormCFE.ClaimFormCur=ClaimFormCur;
			FormCFE.IsNew=true;
			FormCFE.ShowDialog();
			if(FormCFE.DialogResult!=DialogResult.OK){
				return;
			}
			changed=true;
			//ClaimFormItems refreshed within FormCFE
			FillList();
		}
Ejemplo n.º 2
0
		private void listClaimForms_DoubleClick(object sender, System.EventArgs e) {
			if(listClaimForms.SelectedIndex==-1)
				return;
			FormClaimFormEdit FormCFE=new FormClaimFormEdit();
			FormCFE.ClaimFormCur=ClaimForms.ListLong[listClaimForms.SelectedIndex];
			FormCFE.ShowDialog();
			changed=true;//we don't really know if they changed it, but always refresh
			//ClaimFormItems refreshed within FormCFE
			FillList();
		}