private void btnTaskStateAdd_Click(object sender, EventArgs e) { FrmTaskStateEdit objTaskState = new FrmTaskStateEdit(); objTaskState.Tag = 0; objTaskState.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objTaskState.ShowDialog(); }
private void btnTaskStateUpdate_Click(object sender, EventArgs e) { object id = DataGridViewShow.CurrentRow.Cells[0].Value; FrmTaskStateEdit objTaskState = new FrmTaskStateEdit(); objTaskState.Tag = id; objTaskState.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objTaskState.ShowDialog(); }