Пример #1
0
        private void ins_CensusTrack_Click(object sender, EventArgs e)
        {
            this.Hide();
            Insert_CensusTrack obj_Insert_Tract = new Insert_CensusTrack(frmLogin);

            obj_Insert_Tract.Show();
        }
Пример #2
0
 private void btnInsert_Click(object sender, EventArgs e)
 {
     if (rbBuilding.Checked)
     {
         this.Hide();
         InsertBuilding objInsertBuilding = new InsertBuilding(frmLogin);
         objInsertBuilding.Show();
     }
     else if (rbCensus.Checked)
     {
         this.Hide();
         Insert_CensusTrack obj_Insert_Tract = new Insert_CensusTrack(frmLogin);
         obj_Insert_Tract.Show();
     }
     else if (rbMortgager.Checked)
     {
         this.Hide();
         InsertMortgager obj_Insert_Tract = new InsertMortgager(frmLogin);
         obj_Insert_Tract.Show();
     }
     else if (rbOwner.Checked)
     {
         this.Hide();
         Insert_Owner obj_Insert_Tract = new Insert_Owner(frmLogin);
         obj_Insert_Tract.Show();
     }
     else if (rbUnit.Checked)
     {
         this.Hide();
         Insert_Unit obj_Insert_Tract = new Insert_Unit(frmLogin);
         obj_Insert_Tract.Show();
     }
     else
     {
         MessageBox.Show("Select an option");
     }
 }