private void btnDayOffStateAdd_Click(object sender, EventArgs e) { FrmDayOffStateEdit objDayOffState = new FrmDayOffStateEdit(); objDayOffState.Tag = 0; objDayOffState.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objDayOffState.ShowDialog(); }
private void btnDayOffStateUpdate_Click(object sender, EventArgs e) { object id = DataGridViewShow.CurrentRow.Cells[0].Value; FrmDayOffStateEdit objDayOffState = new FrmDayOffStateEdit(); objDayOffState.Tag = id; objDayOffState.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objDayOffState.ShowDialog(); }