Exemplo n.º 1
0
        private void btnSalesLeaveStateAdd_Click(object sender, EventArgs e)
        {
            FrmSalesLeaveStateEdit objSalesLeaveStateEdit = new FrmSalesLeaveStateEdit();

            objSalesLeaveStateEdit.Tag        = 0;
            objSalesLeaveStateEdit.ShowUpdate = new DisplayUpdate(this.FrmInitialization);
            objSalesLeaveStateEdit.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnSalesLeaveStateUpdate_Click(object sender, EventArgs e)
        {
            object id = DataGridViewShow.CurrentRow.Cells[0].Value;
            FrmSalesLeaveStateEdit objSalesLeaveStateEdit = new FrmSalesLeaveStateEdit();

            objSalesLeaveStateEdit.Tag        = id;
            objSalesLeaveStateEdit.ShowUpdate = new DisplayUpdate(this.FrmInitialization);
            objSalesLeaveStateEdit.ShowDialog();
        }