Ejemplo n.º 1
0
        private void btn_AddHouse_Click(object sender, EventArgs e)
        {
            clsGLobalVariables.method = "add";
            this.Close();
            frmHouseAdd frmHouseAdd = new frmHouseAdd();

            frmHouseAdd.Show();
        }
Ejemplo n.º 2
0
 private void btn_EditHouse_Click(object sender, EventArgs e)
 {
     clsGLobalVariables.method = "edit";
     this.Close();
     try
     {
         clsGLobalVariables.Id = dataHouses.SelectedRows[0].Cells[0].Value.ToString();
         frmHouseAdd frmHouseAdd = new frmHouseAdd();
         frmHouseAdd.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Please Select the Row of House you want to edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }