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"); } }
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"); } }
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"); } }
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"); } }