Exemplo n.º 1
0
        private void btnNewViewing_Click(object sender, EventArgs e)
        {
            frmNewViewing2 fC = new frmNewViewing2();

            fC.Show();
            this.Close();
        }
Exemplo n.º 2
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";
     }
 }