Exemple #1
0
        private void btnTravelStateAdd_Click(object sender, EventArgs e)
        {
            FrmTravelStateEdit objTravelStateEdit = new FrmTravelStateEdit();

            objTravelStateEdit.ShowUpdate = new DisplayUpdate(this.FrmInitialization);
            objTravelStateEdit.Tag        = 0;
            objTravelStateEdit.ShowDialog();
        }
Exemple #2
0
        private void btnTravelUpdate_Click(object sender, EventArgs e)
        {
            object             id = DataGridViewShow.CurrentRow.Cells[0].Value;
            FrmTravelStateEdit objTravelStateEdit = new FrmTravelStateEdit();

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