示例#1
0
        private void OpenNewTasks_OnClick(object sender, RoutedEventArgs e)
        {
            var newForm = new User1_NewTasks();

            newForm.Show();
            Close();
        }
示例#2
0
 private void ButtonBase_OnClick(object sender, RoutedEventArgs routedEventArgs)
 {
     if (currentUser == "user1")
     {
         if (currentPassword == passwords[0])
         {
             var newForm = new User1_NewTasks();
             newForm.Show();
             Close();
         }
         else
         {
             MessageBox.Show("Incorrect password");
         }
     }
     else if ((currentUser == "user2" && currentPassword == passwords[1]) ||
              (currentUser == "user3" && currentPassword == passwords[2]) ||
              (currentUser == "user4" && currentPassword == passwords[3]))
     {
         var newForm = new User234_InProgress(currentUser);
         newForm.Show();
         XmlTransformer xmlTranformer = new XmlTransformer();
         Close();
     }
     else
     {
         MessageBox.Show("Incorrect credentails");
     }
 }