예제 #1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            FormEmployerEdit FormEE = new FormEmployerEdit();

            FormEE.EmployerCur = new Employer();
            FormEE.IsNew       = true;
            FormEE.ShowDialog();
            FillGrid();
        }
예제 #2
0
        private void butEdit_Click(object sender, System.EventArgs e)
        {
            if (listEmp.SelectedIndices.Count != 1)
            {
                MessageBox.Show(Lan.g(this, "Please select one item first."));
                return;
            }
            FormEmployerEdit FormEE = new FormEmployerEdit();

            FormEE.EmployerCur = Employers.List[listEmp.SelectedIndices[0]];
            FormEE.ShowDialog();
            if (FormEE.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
예제 #3
0
        private void listEmp_DoubleClick(object sender, System.EventArgs e)
        {
            if (listEmp.SelectedIndices.Count == 0)
            {
                return;
            }
            //EmployerCur=
            //if(IsSelectMode){
            //	DialogResult=DialogResult.OK;
            //	return;
            //}
            FormEmployerEdit FormEE = new FormEmployerEdit();

            FormEE.EmployerCur = Employers.List[listEmp.SelectedIndices[0]];
            FormEE.ShowDialog();
            if (FormEE.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
예제 #4
0
파일: FormEmployers.cs 프로젝트: mnisl/OD
		private void butEdit_Click(object sender, System.EventArgs e) {
			if(listEmp.SelectedIndices.Count!=1){
				MessageBox.Show(Lan.g(this,"Please select one item first."));
				return;
			}
			FormEmployerEdit FormEE=new FormEmployerEdit();
			FormEE.EmployerCur=ListEmployers[listEmp.SelectedIndices[0]];
			FormEE.ShowDialog();
			if(FormEE.DialogResult!=DialogResult.OK)
				return;
			FillGrid();
		}
예제 #5
0
파일: FormEmployers.cs 프로젝트: mnisl/OD
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormEmployerEdit FormEE=new FormEmployerEdit();
			FormEE.EmployerCur=new Employer();
			FormEE.IsNew=true;
			FormEE.ShowDialog();
			FillGrid();
		}
예제 #6
0
파일: FormEmployers.cs 프로젝트: mnisl/OD
		private void listEmp_DoubleClick(object sender, System.EventArgs e) {
			if(listEmp.SelectedIndices.Count==0)
				return;
			//EmployerCur=
			//if(IsSelectMode){
			//	DialogResult=DialogResult.OK;
			//	return;
			//}
			FormEmployerEdit FormEE=new FormEmployerEdit();
			FormEE.EmployerCur=ListEmployers[listEmp.SelectedIndices[0]];
			FormEE.ShowDialog();
			if(FormEE.DialogResult!=DialogResult.OK)
				return;
			FillGrid();
		}