Esempio n. 1
0
        private void BackBtn_Click(object sender, RoutedEventArgs e)
        {
            BoardsWindow boardsWindow = new BoardsWindow(service);

            boardsWindow.Show();
            this.Close();
        }
Esempio n. 2
0
 private void LoginBtn_Click(object sender, RoutedEventArgs e)
 {
     if (service.Login(LDC.Email, LDC.Password) != null) // Successfull login
     {
         BoardsWindow boardsWin = new BoardsWindow(this.service);
         boardsWin.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("One of the details is not correct!!");
         this.LDC.Email    = "";
         this.LDC.Password = "";
     }
 }
Esempio n. 3
0
 private void RemoveBtn_Click(object sender, RoutedEventArgs e)
 {
     if (this.bwdc.BoardName != null)
     {
         this.service.RemoveBoard((string)this.bwdc.BoardName.Content);
         MessageBox.Show("Board deleted successfully");
         BoardsWindow boardsWindow = new BoardsWindow(service);
         boardsWindow.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("Please select a board");
     }
 }
Esempio n. 4
0
 private void AddBtn_Click(object sender, RoutedEventArgs e)
 {
     if (this.bwdc.NewBoardName != null && !this.bwdc.NewBoardName.Equals(""))
     {
         if (this.service.AddBoard(this.bwdc.NewBoardName))
         {
             MessageBox.Show("Board added successfully");
             this.bwdc = new BoardsWindowDataContext(service);
             BoardsWindow boardsWindow = new BoardsWindow(service);
             boardsWindow.Show();
             this.Close();
         }
         else
         {
             MessageBox.Show("Board with this name is already exists");
         }
     }
     else
     {
         MessageBox.Show("Please select a boardName");
     }
 }