Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
		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();
		}
Example #4
0
		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();
		}