private void butAdd_Click(object sender,EventArgs e) { changed=true; ICD9 icd9=new ICD9(); FormIcd9Edit FormI=new FormIcd9Edit(icd9); FormI.IsNew=true; FormI.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { changed = true; ICD9 icd9 = new ICD9(); FormIcd9Edit FormI = new FormIcd9Edit(icd9); FormI.IsNew = true; FormI.ShowDialog(); FillGrid(); }
private void listMain_DoubleClick(object sender, System.EventArgs e) { if (listMain.SelectedIndex == -1) { return; } if (IsSelectionMode) { SelectedIcd9Num = icd9List[listMain.SelectedIndex].ICD9Num; DialogResult = DialogResult.OK; return; } changed = true; FormIcd9Edit FormI = new FormIcd9Edit(icd9List[listMain.SelectedIndex]); FormI.ShowDialog(); if (FormI.DialogResult != DialogResult.OK) { return; } FillGrid(); }
private void listMain_DoubleClick(object sender,System.EventArgs e) { if(listMain.SelectedIndex==-1) { return; } if(IsSelectionMode) { SelectedIcd9Num=icd9List[listMain.SelectedIndex].ICD9Num; DialogResult=DialogResult.OK; return; } changed=true; FormIcd9Edit FormI=new FormIcd9Edit(icd9List[listMain.SelectedIndex]); FormI.ShowDialog(); if(FormI.DialogResult!=DialogResult.OK) { return; } FillGrid(); }