public Edit(string userName, PresentationBoard PTask, MainWindow main)
 {
     InitializeComponent();
     this.userName       = userName;
     this.CurrTaskStatus = PTask.getTasColumn();
     this.currTaskUID    = PTask.getTaskUID();
     EDC              = new EditDataContext();
     EDC.Title        = PTask.Title;
     EDC.Description  = PTask.Description;
     EDC.DueDate      = PTask.DueDate;
     this.main        = main;
     this.DataContext = EDC;
 }
 private void Move_Task_Click(PresentationBoard currRow)
 {
     if (selectedTask != null)
     {
         InfoObject info = SystemInterface.moveTask(userName, currRow.getTaskUID(), currRow.getTasColumn());
         if (info.getIsSucceeded())
         {
             this.show(SystemInterface.getBoard(userName));
             this.selectedTask = null;
         }
         else
         {
             MessageBox.Show(info.getMessage());
         }
     }
     else
     {
         MessageBox.Show("Please select task");
     }
 }
 private void Move_Task_Click(object sender, RoutedEventArgs e)
 {
     if (selectedTask != null)
     {
         InfoObject info = SystemInterface.moveTask(userName, selectedTask.getTaskUID(), selectedTask.getTasColumn());
         if (info.getIsSucceeded())
         {
             this.show(SystemInterface.getBoard(userName));
             this.selectedTask = null;
         }
         else
         {
             MessageBox.Show(info.getMessage());
         }
     }
     else
     {
         MessageBox.Show("Please select task");
     }
 }