private void btnGoOutStateAdd_Click(object sender, EventArgs e) { GoOutStateEdit objGoOutStateEdit = new GoOutStateEdit(); objGoOutStateEdit.Tag = 0; objGoOutStateEdit.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objGoOutStateEdit.ShowDialog(); }
private void btnGoOutStateUpdate_Click(object sender, EventArgs e) { object id = DataGridViewShow.CurrentRow.Cells[0].Value; GoOutStateEdit objGoOutStateEdit = new GoOutStateEdit(); objGoOutStateEdit.ShowUpdate = new DisplayUpdate(this.FrmInitialization); objGoOutStateEdit.Tag = id; objGoOutStateEdit.ShowDialog(); }