public ContainerDialog(AppSettings settings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ContainerSettingsViewModel(settings.UserProfiles); }
public ComputerDialog(AppSettings settings, string name, string desc, string fqdn, string address, bool useParentId, Guid profileId) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ComputerSettingsViewModel(settings.UserProfiles, name, desc, fqdn, address, useParentId, profileId); }
public MainWindow() { InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, UIThemeEnum.BlueDark); appvm = new AppViewModel(); DataContext = appvm; }
public ActiveDirectoryDialog(AppSettings appSettings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, appSettings.Theme); DataContext = new DomainDiscoverySettingsViewModel(appSettings.UserProfiles); EwMode.SelectedItem = (DataContext as DomainDiscoverySettingsViewModel).Settings.Mode; }
public ReportDialog(AppSettings settings, string name, string description, bool useCustomIcon, GizmoComputerHardwareIconsEnum customIcon, TreeItem root, ReportSettings reportSettings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ReportItemSettingsViewModel(name, description, useCustomIcon, customIcon, root, reportSettings); FillWrapPanelWithIcons(useCustomIcon, customIcon); }
public ChooseContainerWindow(AppSettings appSettings, TreeItem treeItem) { InitializeComponent(); ccvm = new ChooseContainerViewModel(treeItem, false); DataContext = ccvm; Owner = Application.Current.MainWindow; ThemeManager.ApplyThemeToWindow(this, appSettings.Theme); }
public ReportDialog(AppSettings settings, TreeItem root) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); DataContext = new ReportItemSettingsViewModel(root); FillWrapPanelWithIcons(false, GizmoComputerHardwareIconsEnum.None); }
public AppSettingsDialog(AppSettings settings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, settings.Theme); appsvm = new AppSettingsViewModel(new DefaultDialogService(), new SerializationService(), settings); DataContext = appsvm; }
private void UIEnumSwitch_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (sender != null) { if ((sender as UIEnumSwitch).SelectedItem != null) { ThemeManager.ApplyThemeToWindow(this, (UIThemeEnum)(sender as UIEnumSwitch).SelectedItem); } } }
public ActiveDirectoryDialog(AppSettings appSettings, DomainDiscoverySettings domainDiscoverySettings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, appSettings.Theme); EwMode.IsHitTestVisible = false; TbDomainName.IsReadOnly = true; DataContext = new DomainDiscoverySettingsViewModel(appSettings.UserProfiles, domainDiscoverySettings); EwMode.SelectedItem = (DataContext as DomainDiscoverySettingsViewModel).Settings.Mode; }
public MainWindow() { InitializeComponent(); appvm = new AppViewModel(new DefaultDialogService(), new TreeItemDialogService(), new SerializationService(), new AppSettingsDialogService()); appvm.OnUnlocked += Appvm_OnUnlocked; appvm.OnAppSettingsChanged += Appvm_OnAppSettingsChanged; DataContext = appvm; ThemeManager.ApplyThemeToWindow(this, appvm.Settings.Theme); if (appvm.IsFirstRun) { tbSetUnlockPassword.Focus(); } else if (!appvm.IsUnlocked) { tbUnlockPassword.Focus(); } }
private void MiBlueLight_Click(object sender, RoutedEventArgs e) { AppTheme = UIThemeEnum.BlueLight; ThemeManager.ApplyThemeToWindow(this, AppTheme); }
private void MiPurpleLight_Click(object sender, RoutedEventArgs e) { appvm.Settings.Theme = UIThemeEnum.PurpleLight; ThemeManager.ApplyThemeToWindow(this, appvm.Settings.Theme); }
private void MiBlueDark_Click(object sender, RoutedEventArgs e) { appvm.Settings.Theme = UIThemeEnum.BlueDark; ThemeManager.ApplyThemeToWindow(this, appvm.Settings.Theme); }
public AboutWindow(UIThemeEnum themeEnum) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, themeEnum); }
private void MiPurpleDark_Click(object sender, RoutedEventArgs e) { AppTheme = UIThemeEnum.PurpleDark; ThemeManager.ApplyThemeToWindow(this, AppTheme); }
public AboutWindow(AppSettings appSettings) { Owner = Application.Current.MainWindow; InitializeComponent(); ThemeManager.ApplyThemeToWindow(this, appSettings.Theme); }