private void BackButton_Click(object sender, RoutedEventArgs e) { ToDoListsWindow newToDoListsWindow = new ToDoListsWindow(process); newToDoListsWindow.Show(); this.Close(); }
private void BackButton_Click(object sender, RoutedEventArgs e) { process.orderedItemsList.Clear(); process.selectedList = null; process.filterSelection = Process.FilterSelection.Default; ToDoListsWindow newToDoListWindow = new ToDoListsWindow(process); newToDoListWindow.Show(); this.Close(); }
private void SubmitButton_Click(object sender, RoutedEventArgs e) { if (listNameTextBox.Text != null && listNameTextBox.Text != "") { process.CreateToDoList(listNameTextBox.Text.ToString()); MessageBox.Show("The list created successfully!"); ToDoListsWindow newToDoListsWindow = new ToDoListsWindow(process); newToDoListsWindow.Show(); this.Close(); } else { MessageBox.Show("List name is required field."); } }
private void SignInButton_Click(object sender, RoutedEventArgs e) { string message = null; message = process.SignIn(userNameTextBox.Text.ToString(), userPasswordPasswordBox.Password.ToString()); if (message != null) { MessageBox.Show(message); userNameTextBox.Clear(); userPasswordPasswordBox.Clear(); } else { ToDoListsWindow listWindow = new ToDoListsWindow(process); listWindow.Show(); this.Close(); } }