Пример #1
0
        private void Button_Click_Back(object sender, RoutedEventArgs e)
        {
            KanbanWindow kanban = new KanbanWindow(email); //opening the kanban window

            kanban.Show();
            Close();
        }
Пример #2
0
 private void Button_Click_Promote(object sender, RoutedEventArgs e)
 {
     if (!VM.PromoteTask(task))
     {
         MessageBox.Show("There is a problem with the things you entered");
     }
     else
     {
         KanbanWindow kanban = new KanbanWindow(email); //opening the kanban window
         kanban.Show();
         Close();
     }
 }
Пример #3
0
        private void Button_Click_Replace(object sender, RoutedEventArgs e)
        {
            bool b = VM.ReplaceColumns();

            if (!b)
            {
                MessageBox.Show("There is a problem with the things you entered");
            }
            else
            {
                KanbanWindow kanban = new KanbanWindow(email); //opening the kanban window
                kanban.Show();
                Close();
            }
        }
Пример #4
0
        private void Button_Click_Login(object sender, RoutedEventArgs e)
        {
            InterfaceLayer.InterfaceLayerUser user = VM.Login();
            string email = VM.Email;

            if (user != null)                                  //checking if the login succeed
            {
                KanbanWindow kanban = new KanbanWindow(email); //opening the kanban window
                kanban.Show();
                Close();
            }
            else
            {
                MessageBox.Show("Wrong Email and/or Password");
            }
        }