public NewOverlayDialog() { InitializeComponent(); if (!DesignMode) { LanguageLoader.LanguagePatch(this); } }
private void InitializeUI() { InitializeComponent(); foreach (var i in OverlayConfigs) { overlayManageTabControl1.TabPages.Add(i.Value); SelectOverlayNameDisplay(); } if (!DesignMode) { LanguageLoader.LanguagePatch(this); } ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeNone); ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeNormal); ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeCenter); ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeFill); ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeUniform); ScreenshotBackgroundFillModeComboBox.Items.Add(BackgroundModeUniformToFill); IssueBrowser = new ChromiumWebBrowser("https://github.com/lalafellsleep/Aliapoh.Overlay/issues") { Dock = DockStyle.Fill }; IssueBrowser.BrowserSettings.WebGl = CefState.Disabled; // main tab page setting OverlayControlTabPage.Dock = DockStyle.None; OverlayControlTabPage.Location = new Point(-2, -2); OverlayControlTabPage.Size = new Size(Width + 4, Height + 4); OverlayControlTabPage.Anchor = (AnchorStyles)(1 | 2 | 4 | 8); AutoHideCheckBox.Checked = SettingManager.GlobalSetting.AutoHide; DetectProcessNameTextBox.Text = SettingManager.GlobalSetting.DetectProcessName; }