Пример #1
0
        private void btnAddPosition_Click(object sender, EventArgs e)
        {
            FrmPositionDetail frmPositionDetail = new FrmPositionDetail(null);

            frmPositionDetail.ShowDialog();
            loadPositions();
        }
Пример #2
0
        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            if (dgvPosition.CurrentRow != null)
            {
                int EmployeeId = (int)dgvPosition.CurrentRow.Cells["PositionId"].Value;
                FrmPositionDetail frmPositionDetail = new FrmPositionDetail(EmployeeId);
                frmPositionDetail.ShowDialog(this);

                loadPositions();
            }
        }