private void Login_Click(object sender, RoutedEventArgs e)
 {
     if (this.userInput.login())
     {
         Window2 win2 = new Window2();
         win2.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("User Name Or Password Incorrect");
     }
 }
Пример #2
0
 private void MoveState_Click(object sender, RoutedEventArgs e)
 {
     if (taskInput.changeState())
     {
         MessageBox.Show("Task was moved forward");
         Window2 window2 = new Window2();
         window2.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("can't change state for the task");
     }
 }
Пример #3
0
 private void Delete_Click(object sender, RoutedEventArgs e)
 {
     if (taskInput.delete())
     {
         MessageBox.Show("Task was deleted succesfuly");
         Window2 window2 = new Window2();
         window2.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("can't delete task");
     }
 }
Пример #4
0
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (taskInput.edit())
     {
         MessageBox.Show("Task Edited Succefully");
         Window2 window2 = new Window2();
         window2.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("can't edit task");
     }
 }