Ejemplo n.º 1
0
        private void AddUserToProjectButton_Click(object sender, RoutedEventArgs e)
        {
            Project          selectedProject  = (sender as Button).Tag as Project;
            SelectUserWindow selectUserWindow = new SelectUserWindow(this, selectedProject);

            this.IsEnabled = false;
            selectUserWindow.Show();
        }
 private void ChangeAssignedUserButton_Click(object sender, RoutedEventArgs e)
 {
     if (activeUser.isManager)
     {
         SelectUserWindow selectUserWindow = new SelectUserWindow(this, activeTask);
         this.IsEnabled = false;
         selectUserWindow.Show();
     }
     else
     {
         MessageBox.Show("You require manager priviliges in order to perform this action.", "Error");
     }
 }