예제 #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();
        }
예제 #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();
        }
예제 #3
0
파일: FormCounties.cs 프로젝트: mnisl/OD
		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();
		}
예제 #4
0
파일: FormCounties.cs 프로젝트: mnisl/OD
		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();
		}