public ViewRoles(controlPanel parent) { InitializeComponent(); this.parent = parent; dataGrid.IsReadOnly = true; dataGrid.ItemsSource = RoleDAO.getAllRoles(); }
public ViewApplications(controlPanel parent) { InitializeComponent(); this.parent = parent; dataGrid.IsReadOnly = true; dataGrid.ItemsSource = ApplicationDAO.getAllApplicationRecords(); }
public ViewPermissions(controlPanel parent) { InitializeComponent(); this.parent = parent; dataGrid.IsReadOnly = true; dataGrid.ItemsSource = PermissionDAO.getAllPermissions(); }
public AddPermission(User user, controlPanel parent) { InitializeComponent(); apps = Security.DAL.ApplicationDAO.getAllApplicationRecords(); String[] appsArr = (from app in apps select app.Application_Name).ToArray <String>(); this.user = user; this.parent = parent; appComboBox.ItemsSource = appsArr; appComboBox.SelectedIndex = 0; }
public AddRole(User user, controlPanel parent) { InitializeComponent(); this.user = user; this.parent = parent; apps = ApplicationDAO.getAllApplicationRecords(); String [] appNames = (from app in apps select app.Application_Name).ToArray <String>(); appComboBox.ItemsSource = appNames; appComboBox.SelectedIndex = 0; isParentControlPanel = true; edit_btn.Visibility = System.Windows.Visibility.Hidden; isActive_labelv.Visibility = System.Windows.Visibility.Hidden; isActive_combobox.Visibility = System.Windows.Visibility.Hidden; }
public AddUser(User user, controlPanel parent) { this.user = user; this.parent = parent; InitializeComponent(); isParentControlPanel = true; isActive_comboBox.Visibility = System.Windows.Visibility.Hidden; isActive_Label.Visibility = System.Windows.Visibility.Hidden; apps = ApplicationDAO.getAllApplicationRecords(); availableApps = (from app in apps select app.Application_Name).ToList <String>(); selectedApps = new List <string>(); roles = new List <Role>(); availableRoles = new List <string>(); selectedRoles = new List <string>(); avalaible_applications_list_box.ItemsSource = availableApps; }
public AddApplication(User user, controlPanel window) { InitializeComponent(); this.user = user; this.parent = window; }