Пример #1
0
        private void btNewEmpl_Click(object sender, EventArgs e)
        {
            frmAddUpdateEmployee frmEmpl = new frmAddUpdateEmployee(-1);

            try { frmEmpl.ShowDialog(this); }
            catch { }
        }
Пример #2
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int id = (int)dgvEmployee.Rows[_rowIndex].Cells[dgvEmployee.Columns["PayrollNumber"].Index].Value;
            frmAddUpdateEmployee objForm = new frmAddUpdateEmployee(id);

            objForm.ShowDialog(this);
        }
Пример #3
0
        public frmTerminalRegister(frmAddUpdateEmployee callbackForm)
        {
            _dtCtrl = Properties.Settings.Default.IsClient ? RemoteDataController.Instance : LocalDataController.Instance;

            _callbackForm = callbackForm;

            InitializeComponent();

            BindData();
        }
Пример #4
0
        public frmTerminalRegister(frmAddUpdateEmployee callbackForm)
        {
            _dtCtrl = Properties.Settings.Default.IsClient ? RemoteDataController.Instance : LocalDataController.Instance;

            _callbackForm = callbackForm;

            InitializeComponent();

            BindData();
        }
Пример #5
0
 private void btNewEmpl_Click(object sender, EventArgs e)
 {
     frmAddUpdateEmployee frmEmpl = new frmAddUpdateEmployee(-1);
     frmEmpl.ShowDialog(this);
 }
Пример #6
0
 private void updateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int id = (int)dgvEmployee.Rows[_rowIndex].Cells[dgvEmployee.Columns["PayrollNumber"].Index].Value;
     frmAddUpdateEmployee objForm = new frmAddUpdateEmployee(id);
     objForm.ShowDialog(this);
 }