/// <summary> /// Convert. /// </summary> /// <param name="value">Value.</param> /// <param name="targetType">Target type.</param> /// <param name="parameter">Parameter.</param> /// <param name="culture">Culture.</param> /// <returns>Grouping.</returns> public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { IKeyword keyword = value as IKeyword; this.viewModel = ViewModel.Get(); var webLimits = this.viewModel.SelectedManagedUser != null?this.viewModel.BL.Database.ReadWebLimitations(x => x.UserID == this.viewModel.SelectedManagedUser.ID && x.KeywordID == keyword.ID) : null; if (webLimits != null && keyword != null && webLimits.Where(x => x.KeywordID == keyword.ID).Any()) { return("Tiltott"); } return("Nem tiltott"); }
/// <summary> /// Initializes a new instance of the <see cref="AdminProgramLimitationPage"/> class. /// </summary> public AdminProgramLimitationPage() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); this.DataContext = this.viewModel; }
/// <summary> /// Initializes a new instance of the <see cref="AdminProgramLimitationSettingsWindow"/> class. /// </summary> public AdminProgramLimitationSettingsWindow() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); this.DataContext = this.viewModel.SelectedManagedUser; }
/// <summary> /// Initializes a new instance of the <see cref="AdminProgramLimitationAddOrEditProgramLimitationWindow"/> class. /// </summary> public AdminProgramLimitationAddOrEditProgramLimitationWindow() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); }
public AdminController(IAdminViewModel avm) { this.adminviewmodal = avm; }
/// <summary> /// Initializes a new instance of the <see cref="AdminWindow"/> class. /// </summary> public AdminWindow() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); this.DataContext = this.viewModel; }
public AdminView(IAdminViewModel viewModel) { InitializeComponent(); this.DataContext = viewModel; }
/// <summary> /// Initializes a new instance of the <see cref="AdminWebLimitationAddOrEditKeywordWindow"/> class. /// </summary> public AdminWebLimitationAddOrEditKeywordWindow() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); }
/// <summary> /// Initializes a new instance of the <see cref="AdminTimeLimitationPage"/> class. /// </summary> public AdminTimeLimitationPage() { this.InitializeComponent(); this.viewModel = ViewModel.Get(); this.DataContext = this.viewModel.SelectedManagedUser; }