Ejemplo n.º 1
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            HomeWindow win = new HomeWindow();

            this.Close();
            win.Show();
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     if ((passwordBox1.Password == passwordBox2.Password) && (passwordBox1.Password != ""))
     {
         addUser.Uname    = nametextBox.Text;
         addUser.Uage     = int.Parse(agetextBox.Text);
         addUser.Udate    = datetextBox.Text;
         addUser.Password = passwordBox1.Password;
         App app = Application.Current as App;
         app.ID = addUser.UID.ToString();
         sc.InsertUserDetails(addUser.UID, addUser.Uname, addUser.Uage, addUser.Usex, addUser.Udate, addUser.Password);
         HomeWindow win = new HomeWindow();
         this.Close();
         win.Show();
     }
     else
     {
         makeSurelabel.Content = "Make Sure!";
     }
 }