private void butAdd_Click(object sender, System.EventArgs e) { FormCountyEdit FormSE = new FormCountyEdit(); FormSE.IsNew = true; FormSE.CountyCur = new County(); FormSE.ShowDialog(); if (FormSE.DialogResult != DialogResult.OK) { return; } FillList(); }
private void listCounties_DoubleClick(object sender, System.EventArgs e) { if (listCounties.SelectedIndex == -1) { return; } FormCountyEdit FormSE = new FormCountyEdit(); FormSE.CountyCur = CountiesList[listCounties.SelectedIndex]; FormSE.ShowDialog(); if (FormSE.DialogResult != DialogResult.OK) { return; } FillList(); }
private void butAdd_Click(object sender, System.EventArgs e) { FormCountyEdit FormSE=new FormCountyEdit(); FormSE.IsNew=true; FormSE.CountyCur=new County(); FormSE.ShowDialog(); if(FormSE.DialogResult!=DialogResult.OK){ return; } FillList(); }
private void listCounties_DoubleClick(object sender, System.EventArgs e) { if(listCounties.SelectedIndex==-1){ return; } FormCountyEdit FormSE=new FormCountyEdit(); FormSE.CountyCur=CountiesList[listCounties.SelectedIndex]; FormSE.ShowDialog(); if(FormSE.DialogResult!=DialogResult.OK){ return; } FillList(); }