コード例 #1
0
        private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            ToDoListsWindow newToDoListsWindow = new ToDoListsWindow(process);

            newToDoListsWindow.Show();
            this.Close();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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.");
            }
        }
コード例 #4
0
        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();
            }
        }