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

            FormEE.EmployeeCur = new Employee();
            FormEE.IsNew       = true;
            FormEE.ShowDialog();
            FillList();
        }
예제 #2
0
        private void listEmployees_DoubleClick(object sender, System.EventArgs e)
        {
            if (listEmployees.SelectedIndex == -1)
            {
                return;
            }
            FormEmployeeEdit FormEE = new FormEmployeeEdit();

            FormEE.EmployeeCur = (Employee)ALemployees[listEmployees.SelectedIndex];
            FormEE.ShowDialog();
            FillList();
        }
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            int empNum = Employees.ListLong[e.Row].EmployeeNum;
            FormEmployeeEdit FormEE = new FormEmployeeEdit();

            FormEE.EmployeeCur = Employees.ListLong[e.Row];
            FormEE.ShowDialog();
            FillGrid();
            isChanged = true;
            for (int i = 0; i < Employees.ListLong.Length; i++)
            {
                if (Employees.ListLong[i].EmployeeNum == empNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
예제 #4
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            long             empNum = _listEmployees[e.Row].EmployeeNum;
            FormEmployeeEdit FormEE = new FormEmployeeEdit();

            FormEE.EmployeeCur = _listEmployees[e.Row];
            FormEE.ShowDialog();
            FillGrid();
            isChanged = true;
            for (int i = 0; i < _listEmployees.Count; i++)
            {
                if (_listEmployees[i].EmployeeNum == empNum)
                {
                    gridMain.SetSelected(i, true);
                }
            }
        }
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			long empNum=Employees.ListLong[e.Row].EmployeeNum;
			FormEmployeeEdit FormEE=new FormEmployeeEdit();
			FormEE.EmployeeCur=Employees.ListLong[e.Row];
			FormEE.ShowDialog();
			FillGrid();
			isChanged=true;
			for(int i=0;i<Employees.ListLong.Length;i++){
				if(Employees.ListLong[i].EmployeeNum==empNum){
					gridMain.SetSelected(i,true);
				}
			}
		}
		private void butAdd_Click(object sender, System.EventArgs e) {
			FormEmployeeEdit FormEE=new FormEmployeeEdit();
			FormEE.EmployeeCur=new Employee();
			FormEE.IsNew=true;
			FormEE.ShowDialog();
			FillGrid();
			isChanged=true;
		}