public UpdateWindow(DockContent panel) { WindowType = WindowType.Update; DockPnl = panel; InitializeComponent(); FontOverrider.FontOverride(this); }
public ComponentsCheckWindow() { WindowType = WindowType.ComponentsCheck; DockPnl = new DockContent(); InitializeComponent(); FontOverrider.FontOverride(this); Themes.ThemeManager.getInstance().ThemeChanged += ApplyTheme; }
public ExportForm() { InitializeComponent(); FontOverrider.FontOverride(this); SelectedFolder = null; SelectedConnection = null; btnOK.Enabled = false; }
public AboutWindow() { WindowType = WindowType.About; DockPnl = new DockContent(); InitializeComponent(); FontOverrider.FontOverride(this); ThemeManager.getInstance().ThemeChanged += ApplyTheme; ApplyLanguage(); }
public ActiveDirectoryImportWindow() { InitializeComponent(); FontOverrider.FontOverride(this); WindowType = WindowType.ActiveDirectoryImport; DockPnl = new DockContent(); _currentDomain = Environment.UserDomainName; ApplyTheme(); }
public ComponentsCheckWindow() { WindowType = WindowType.ComponentsCheck; DockPnl = new DockContent(); InitializeComponent(); var display = new DisplayProperties(); _successImage = display.ScaleImage(Resources.Good_Symbol); _failureImage = display.ScaleImage(Resources.Bad_Symbol); FontOverrider.FontOverride(this); ThemeManager.getInstance().ThemeChanged += ApplyTheme; }
private void frmOptions_Load(object sender, EventArgs e) { CompileListOfOptionsPages(); FontOverrider.FontOverride(this); SetImageListForListView(); AddOptionsPagesToListView(); SetInitiallyActivatedPage(); ApplyLanguage(); ApplyTheme(); Themes.ThemeManager.getInstance().ThemeChanged += ApplyTheme; lstOptionPages.SelectedIndexChanged += LstOptionPages_SelectedIndexChanged; lstOptionPages.SelectedIndex = 0; }
protected override void OnCreateControl() { base.OnCreateControl(); _themeManager = ThemeManager.getInstance(); if (!_themeManager.ThemingActive) { return; } // Use the Dialog_* colors since Labels generally have the same colors as panels/dialogs/windows/etc... BackColor = _themeManager.ActiveTheme.ExtendedPalette.getColor("Dialog_Background"); ForeColor = _themeManager.ActiveTheme.ExtendedPalette.getColor("Dialog_Foreground"); FontOverrider.FontOverride(this); Invalidate(); }
private void frmOptions_Load(object sender, EventArgs e) { CompileListOfOptionsPages(); FontOverrider.FontOverride(this); AddOptionsPagesToListView(); SetInitiallyActivatedPage(); // ApplyLanguage(); // Handle the main page here and the individual pages in // AddOptionsPagesToListView() -- one less foreach loop.... Text = Language.strOptionsPageTitle; btnOK.Text = Language.strButtonOK; btnCancel.Text = Language.strButtonCancel; btnApply.Text = Language.strButtonApply; ApplyTheme(); ThemeManager.getInstance().ThemeChanged += ApplyTheme; lstOptionPages.SelectedIndexChanged += LstOptionPages_SelectedIndexChanged; lstOptionPages.SelectedIndex = 0; }