Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
		}
Exemplo n.º 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();
		}