Esempio n. 1
0
        private void BtnSelect_Click(object sender, EventArgs e)
        {
            if (GVTaxi.SelectedRows.Count == 0)
            {
                MessageBox.Show(Classes.Messages.MSG_SelectRow, Classes.Messages.TTLDefault);
                return;
            }

            int RowIndex = Convert.ToInt32(GVTaxi.SelectedRows[0].Cells["taxiid"].Value);
            TaxiForm Form = new TaxiForm(RowIndex);
            Form.MdiParent = this.MdiParent;
            Form._Parent = this;
            Form.Show();
        }
Esempio n. 2
0
 private void BtnNew_Click(object sender, EventArgs e)
 {
     TaxiForm Form = new TaxiForm();
     Form._Parent = this;
     Form.Show();
 }