예제 #1
0
 // EXIT Button
 private void btnExit_Click(object sender, EventArgs e)
 {
     // Check which page user came from
     if (Variables.Previous == "view")
     {
         frmNewViewing2 fc = new frmNewViewing2();
         fc.Show();
         this.Close();
         Variables.Previous = "exit";
     }
     else if (Variables.Previous == "prop")
     {
         frmAddProperty fc = new frmAddProperty();
         fc.Show();
         this.Close();
         Variables.Previous = "exit";
     }
     else
     {
         frmMain fc = new frmMain();
         fc.Show();
         this.Close();
         Variables.Previous = "exit";
     }
 }
예제 #2
0
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            frmAddProperty frm = new frmAddProperty();

            frm.Show();
            this.Hide();
        }