diff --git a/BorderlessGaming.Logic/Models/Language.cs b/BorderlessGaming.Logic/Models/Language.cs index 85e65c3..587ff9b 100644 --- a/BorderlessGaming.Logic/Models/Language.cs +++ b/BorderlessGaming.Logic/Models/Language.cs @@ -1,8 +1,11 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; +using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Text; +using System.Windows.Forms; using BorderlessGaming.Logic.Core; namespace BorderlessGaming.Logic.Models @@ -22,6 +25,7 @@ public void Set() internal string Data(string key) { + return LanguageData.ContainsKey(key) ? LanguageData[key] : null; } diff --git a/BorderlessGaming/BorderlessGaming.csproj b/BorderlessGaming/BorderlessGaming.csproj index a0e473f..1513d06 100644 --- a/BorderlessGaming/BorderlessGaming.csproj +++ b/BorderlessGaming/BorderlessGaming.csproj @@ -218,6 +218,8 @@ + + diff --git a/BorderlessGaming/Forms/MainWindow.Designer.cs b/BorderlessGaming/Forms/MainWindow.Designer.cs index 07aa0ea..f2249f2 100644 --- a/BorderlessGaming/Forms/MainWindow.Designer.cs +++ b/BorderlessGaming/Forms/MainWindow.Designer.cs @@ -1,4 +1,5 @@ using BorderlessGaming.Logic.Core; +using BorderlessGaming.Properties; namespace BorderlessGaming.Forms { @@ -75,7 +76,6 @@ private void InitializeComponent() this.mnuMain = new System.Windows.Forms.MenuStrip(); this.toolStripOptions = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripRunOnStartup = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripLanguages = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripCheckForUpdates = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripGlobalHotkey = new System.Windows.Forms.ToolStripMenuItem(); @@ -98,7 +98,7 @@ private void InitializeComponent() this.toolStripMenuItem12 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripFullApplicationRefresh = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripInfo = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripRainway = new System.Windows.Forms.ToolStripMenuItem(); + this.rainwayStrip = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripUsageGuide = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripRegexReference = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem13 = new System.Windows.Forms.ToolStripSeparator(); @@ -111,6 +111,7 @@ private void InitializeComponent() this.btnRestoreWindow = new System.Windows.Forms.Button(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripLanguages = new System.Windows.Forms.ToolStripMenuItem(); this.processContext.SuspendLayout(); this.mnuFavoritesContext.SuspendLayout(); this.trayIconContextMenu.SuspendLayout(); @@ -160,23 +161,27 @@ private void InitializeComponent() this.toolStripByRegex, this.toolStripByProcess}); this.contextAddToFavs.Name = "contextAddToFavs"; + this.contextAddToFavs.Text = LanguageManager.Data("contextAddToFavs"); // - // toolStripByTheWindowTitle + // byTheWindowTitleTextToolStripMenuItem // resources.ApplyResources(this.toolStripByTheWindowTitle, "toolStripByTheWindowTitle"); this.toolStripByTheWindowTitle.Name = "toolStripByTheWindowTitle"; + this.toolStripByTheWindowTitle.Text = LanguageManager.Data("toolStripByTheWindowTitle"); this.toolStripByTheWindowTitle.Click += new System.EventHandler(this.byTheWindowTitleTextToolStripMenuItem_Click); // - // toolStripByRegex + // byTheWindowTitleTextregexToolStripMenuItem // resources.ApplyResources(this.toolStripByRegex, "toolStripByRegex"); this.toolStripByRegex.Name = "toolStripByRegex"; + this.toolStripByRegex.Text = LanguageManager.Data("toolStripByRegex"); this.toolStripByRegex.Click += new System.EventHandler(this.byTheWindowTitleTextregexToolStripMenuItem_Click); // - // toolStripByProcess + // byTheProcessBinaryNameToolStripMenuItem // resources.ApplyResources(this.toolStripByProcess, "toolStripByProcess"); this.toolStripByProcess.Name = "toolStripByProcess"; + this.toolStripByProcess.Text = LanguageManager.Data("toolStripByProcess"); this.toolStripByProcess.Click += new System.EventHandler(this.byTheProcessBinaryNameToolStripMenuItem_Click); // // toolStripMenuItem1 @@ -188,17 +193,20 @@ private void InitializeComponent() // resources.ApplyResources(this.contextBorderless, "contextBorderless"); this.contextBorderless.Name = "contextBorderless"; + this.contextBorderless.Text = LanguageManager.Data("contextBorderless"); this.contextBorderless.Click += new System.EventHandler(this.btnMakeBorderless_Click); // // contextBorderlessOn // resources.ApplyResources(this.contextBorderlessOn, "contextBorderlessOn"); this.contextBorderlessOn.Name = "contextBorderlessOn"; + this.contextBorderlessOn.Text = LanguageManager.Data("contextBorderlessOn"); // - // toolStripSetWindowTitle + // setWindowTitleToolStripMenuItem // resources.ApplyResources(this.toolStripSetWindowTitle, "toolStripSetWindowTitle"); this.toolStripSetWindowTitle.Name = "toolStripSetWindowTitle"; + this.toolStripSetWindowTitle.Text = LanguageManager.Data("toolStripSetWindowTitle"); this.toolStripSetWindowTitle.Click += new System.EventHandler(this.setWindowTitleToolStripMenuItem_Click); // // toolStripMenuItem8 @@ -206,15 +214,17 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem8, "toolStripMenuItem8"); this.toolStripMenuItem8.Name = "toolStripMenuItem8"; // - // toolStripHideProcess + // hideThisProcessToolStripMenuItem // resources.ApplyResources(this.toolStripHideProcess, "toolStripHideProcess"); this.toolStripHideProcess.Name = "toolStripHideProcess"; + this.toolStripHideProcess.Text = LanguageManager.Data("toolStripHideProcess"); this.toolStripHideProcess.Click += new System.EventHandler(this.hideThisProcessToolStripMenuItem_Click); // // contextFavScreen // resources.ApplyResources(this.contextFavScreen, "contextFavScreen"); + this.contextFavScreen.Text = LanguageManager.Data("contextFavScreen"); this.contextFavScreen.Name = "contextFavScreen"; // // addSelectedItem @@ -258,24 +268,27 @@ private void InitializeComponent() this.mnuFavoritesContext.Name = "mnuFavoritesRightClick"; this.mnuFavoritesContext.Opening += new System.ComponentModel.CancelEventHandler(this.mnuFavoritesContext_Opening); // - // toolStripFullScreen + // fullScreenToolStripMenuItem // resources.ApplyResources(this.toolStripFullScreen, "toolStripFullScreen"); this.toolStripFullScreen.CheckOnClick = true; this.toolStripFullScreen.Name = "toolStripFullScreen"; + this.toolStripFullScreen.Text = LanguageManager.Data("toolStripFullScreen"); this.toolStripFullScreen.Click += new System.EventHandler(this.fullScreenToolStripMenuItem_Click); // - // toolStripNoSizeChange + // noSizeChangeToolStripMenuItem // resources.ApplyResources(this.toolStripNoSizeChange, "toolStripNoSizeChange"); this.toolStripNoSizeChange.CheckOnClick = true; this.toolStripNoSizeChange.Name = "toolStripNoSizeChange"; + this.toolStripNoSizeChange.Text = LanguageManager.Data("toolStripNoSizeChange"); this.toolStripNoSizeChange.Click += new System.EventHandler(this.noSizeChangeToolStripMenuItem_Click); // - // toolStripSetSetWindowSize + // setWindowSizeToolStripMenuItem // resources.ApplyResources(this.toolStripSetSetWindowSize, "toolStripSetSetWindowSize"); this.toolStripSetSetWindowSize.Name = "toolStripSetSetWindowSize"; + this.toolStripSetSetWindowSize.Text = LanguageManager.Data("toolStripSetSetWindowSize"); this.toolStripSetSetWindowSize.Click += new System.EventHandler(this.setWindowSizeToolStripMenuItem_Click); // // toolStripMenuItem6 @@ -283,17 +296,19 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem6, "toolStripMenuItem6"); this.toolStripMenuItem6.Name = "toolStripMenuItem6"; // - // toolStripAutomaximize + // automaximizeToolStripMenuItem // resources.ApplyResources(this.toolStripAutomaximize, "toolStripAutomaximize"); this.toolStripAutomaximize.CheckOnClick = true; this.toolStripAutomaximize.Name = "toolStripAutomaximize"; + this.toolStripAutomaximize.Text = LanguageManager.Data("toolStripAutomaximize"); this.toolStripAutomaximize.Click += new System.EventHandler(this.automaximizeToolStripMenuItem_Click); // - // toolStripAdjustWindowBounds + // adjustWindowBoundsToolStripMenuItem // resources.ApplyResources(this.toolStripAdjustWindowBounds, "toolStripAdjustWindowBounds"); this.toolStripAdjustWindowBounds.Name = "toolStripAdjustWindowBounds"; + this.toolStripAdjustWindowBounds.Text = LanguageManager.Data("toolStripAdjustWindowBounds"); this.toolStripAdjustWindowBounds.Click += new System.EventHandler(this.adjustWindowBoundsToolStripMenuItem_Click); // // toolStripMenuItem4 @@ -301,38 +316,43 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem4, "toolStripMenuItem4"); this.toolStripMenuItem4.Name = "toolStripMenuItem4"; // - // toolStripAlwaysOnTop + // alwaysOnTopToolStripMenuItem // resources.ApplyResources(this.toolStripAlwaysOnTop, "toolStripAlwaysOnTop"); this.toolStripAlwaysOnTop.CheckOnClick = true; this.toolStripAlwaysOnTop.Name = "toolStripAlwaysOnTop"; + this.toolStripAlwaysOnTop.Text = LanguageManager.Data("toolStripAlwaysOnTop"); this.toolStripAlwaysOnTop.Click += new System.EventHandler(this.alwaysOnTopToolStripMenuItem_Click); // - // toolStripDelayBorderless + // delayBorderlessToolStripMenuItem // resources.ApplyResources(this.toolStripDelayBorderless, "toolStripDelayBorderless"); this.toolStripDelayBorderless.CheckOnClick = true; this.toolStripDelayBorderless.Name = "toolStripDelayBorderless"; + this.toolStripDelayBorderless.Text = LanguageManager.Data("toolStripDelayBorderless"); this.toolStripDelayBorderless.Click += new System.EventHandler(this.delayBorderlessToolStripMenuItem_Click); // - // toolStripHideMouseCursor + // hideMouseCursorToolStripMenuItem // resources.ApplyResources(this.toolStripHideMouseCursor, "toolStripHideMouseCursor"); this.toolStripHideMouseCursor.CheckOnClick = true; this.toolStripHideMouseCursor.Name = "toolStripHideMouseCursor"; + this.toolStripHideMouseCursor.Text = LanguageManager.Data("toolStripHideMouseCursor"); this.toolStripHideMouseCursor.Click += new System.EventHandler(this.hideMouseCursorToolStripMenuItem_Click); // - // toolStripHideWindowsTaskbar + // hideWindowsTaskbarToolStripMenuItem // resources.ApplyResources(this.toolStripHideWindowsTaskbar, "toolStripHideWindowsTaskbar"); this.toolStripHideWindowsTaskbar.CheckOnClick = true; this.toolStripHideWindowsTaskbar.Name = "toolStripHideWindowsTaskbar"; + this.toolStripHideWindowsTaskbar.Text = LanguageManager.Data("toolStripHideWindowsTaskbar"); this.toolStripHideWindowsTaskbar.Click += new System.EventHandler(this.hideWindowsTaskbarToolStripMenuItem_Click); // - // toolStripRemoveMenus + // removeMenusToolStripMenuItem // resources.ApplyResources(this.toolStripRemoveMenus, "toolStripRemoveMenus"); this.toolStripRemoveMenus.CheckOnClick = true; + this.toolStripRemoveMenus.Text = LanguageManager.Data("toolStripRemoveMenus"); this.toolStripRemoveMenus.Name = "toolStripRemoveMenus"; this.toolStripRemoveMenus.Click += new System.EventHandler(this.removeMenusToolStripMenuItem_Click); // @@ -341,17 +361,19 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem9, "toolStripMenuItem9"); this.toolStripMenuItem9.Name = "toolStripMenuItem9"; // - // toolStripMuteInBackground + // muteInBackgroundToolStripMenuItem // resources.ApplyResources(this.toolStripMuteInBackground, "toolStripMuteInBackground"); this.toolStripMuteInBackground.CheckOnClick = true; this.toolStripMuteInBackground.Name = "toolStripMuteInBackground"; + this.toolStripMuteInBackground.Text = LanguageManager.Data("toolStripMuteInBackground"); this.toolStripMuteInBackground.Click += new System.EventHandler(this.muteInBackgroundToolStripMenuItem_Click); // - // contextRemoveFromFavs + // contextRemoveFromFavsm // resources.ApplyResources(this.contextRemoveFromFavs, "contextRemoveFromFavs"); this.contextRemoveFromFavs.Name = "contextRemoveFromFavs"; + this.contextRemoveFromFavs.Text = LanguageManager.Data("contextRemoveFromFavs"); this.contextRemoveFromFavs.Click += new System.EventHandler(this.btnRemoveFavorite_Click); // // btnRemoveFavorite @@ -367,11 +389,13 @@ private void InitializeComponent() // resources.ApplyResources(this.processLabel, "processLabel"); this.processLabel.Name = "processLabel"; + this.processLabel.Text = LanguageManager.Data("processLabel"); // // favoritesLabel // resources.ApplyResources(this.favoritesLabel, "favoritesLabel"); this.favoritesLabel.Name = "favoritesLabel"; + this.favoritesLabel.Text = LanguageManager.Data("favoritesLabel"); // // trayIcon // @@ -411,7 +435,9 @@ private void InitializeComponent() this.mnuMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripOptions, this.toolsToolStripMenuItem, - this.toolStripInfo}); + this.toolStripInfo, + this.rainwayStrip + }); this.mnuMain.Name = "mnuMain"; // // toolStripOptions @@ -434,24 +460,23 @@ private void InitializeComponent() this.toolStripMenuItem10, this.toolStripRestoreProcesses}); this.toolStripOptions.Name = "toolStripOptions"; + this.toolStripOptions.Text = LanguageManager.Data("toolStripOptions"); // + // toolStripRunOnStartup // resources.ApplyResources(this.toolStripRunOnStartup, "toolStripRunOnStartup"); this.toolStripRunOnStartup.CheckOnClick = true; this.toolStripRunOnStartup.Name = "toolStripRunOnStartup"; this.toolStripRunOnStartup.CheckedChanged += new System.EventHandler(this.toolStripRunOnStartup_CheckChanged); - // - // toolStripLanguages - // - resources.ApplyResources(this.toolStripLanguages, "toolStripLanguages"); - this.toolStripLanguages.Name = "toolStripLanguages"; + this.toolStripRunOnStartup.Text = LanguageManager.Data("toolStripRunOnStartup"); // // toolStripCheckForUpdates // resources.ApplyResources(this.toolStripCheckForUpdates, "toolStripCheckForUpdates"); this.toolStripCheckForUpdates.CheckOnClick = true; this.toolStripCheckForUpdates.Name = "toolStripCheckForUpdates"; + this.toolStripCheckForUpdates.Text = LanguageManager.Data("toolStripCheckForUpdates"); this.toolStripCheckForUpdates.CheckedChanged += new System.EventHandler(this.toolStripCheckForUpdates_CheckedChanged); // // toolStripMenuItem3 @@ -465,18 +490,21 @@ private void InitializeComponent() this.toolStripGlobalHotkey.CheckOnClick = true; this.toolStripGlobalHotkey.Name = "toolStripGlobalHotkey"; this.toolStripGlobalHotkey.CheckedChanged += new System.EventHandler(this.toolStripGlobalHotkey_CheckChanged); + this.toolStripGlobalHotkey.Text = LanguageManager.Data("toolStripGlobalHotkey") + " (Win+F6)"; // // toolStripMouseLock // resources.ApplyResources(this.toolStripMouseLock, "toolStripMouseLock"); this.toolStripMouseLock.CheckOnClick = true; this.toolStripMouseLock.Name = "toolStripMouseLock"; + this.toolStripMouseLock.Text = LanguageManager.Data("toolStripMouseLock") + " (Scroll Lock)"; this.toolStripMouseLock.CheckedChanged += new System.EventHandler(this.toolStripMouseLock_CheckChanged); // - // toolStripMouseHide + // useMouseHideHotkeyWinScrollLockToolStripMenuItem // resources.ApplyResources(this.toolStripMouseHide, "toolStripMouseHide"); this.toolStripMouseHide.CheckOnClick = true; + this.toolStripMouseHide.Text = LanguageManager.Data("toolStripMouseHide") + " (Win+Scroll Lock)"; this.toolStripMouseHide.Name = "toolStripMouseHide"; this.toolStripMouseHide.CheckedChanged += new System.EventHandler(this.useMouseHideHotkeyWinScrollLockToolStripMenuItem_CheckChanged); // @@ -485,38 +513,43 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem5, "toolStripMenuItem5"); this.toolStripMenuItem5.Name = "toolStripMenuItem5"; // - // toolStripMinimizedToTray + // startMinimizedToTrayToolStripMenuItem // resources.ApplyResources(this.toolStripMinimizedToTray, "toolStripMinimizedToTray"); this.toolStripMinimizedToTray.CheckOnClick = true; + this.toolStripMinimizedToTray.Text = LanguageManager.Data("toolStripMinimizedToTray"); this.toolStripMinimizedToTray.Name = "toolStripMinimizedToTray"; this.toolStripMinimizedToTray.CheckedChanged += new System.EventHandler(this.startMinimizedToTrayToolStripMenuItem_CheckedChanged); // - // toolStripCloseToTray + // closeToTrayToolStripMenuItem // resources.ApplyResources(this.toolStripCloseToTray, "toolStripCloseToTray"); this.toolStripCloseToTray.CheckOnClick = true; + this.toolStripCloseToTray.Text = LanguageManager.Data("toolStripCloseToTray"); this.toolStripCloseToTray.Name = "toolStripCloseToTray"; this.toolStripCloseToTray.CheckedChanged += new System.EventHandler(this.closeToTrayToolStripMenuItem_CheckedChanged); // - // toolStripHideBalloonTips + // hideBalloonTipsToolStripMenuItem // resources.ApplyResources(this.toolStripHideBalloonTips, "toolStripHideBalloonTips"); this.toolStripHideBalloonTips.CheckOnClick = true; + this.toolStripHideBalloonTips.Text = LanguageManager.Data("toolStripHideBalloonTips"); this.toolStripHideBalloonTips.Name = "toolStripHideBalloonTips"; this.toolStripHideBalloonTips.CheckedChanged += new System.EventHandler(this.hideBalloonTipsToolStripMenuItem_CheckedChanged); // - // toolStripSlowWindowDetection + // useSlowerWindowDetectionToolStripMenuItem // resources.ApplyResources(this.toolStripSlowWindowDetection, "toolStripSlowWindowDetection"); this.toolStripSlowWindowDetection.CheckOnClick = true; + this.toolStripSlowWindowDetection.Text = LanguageManager.Data("toolStripSlowWindowDetection"); this.toolStripSlowWindowDetection.Name = "toolStripSlowWindowDetection"; this.toolStripSlowWindowDetection.Click += new System.EventHandler(this.useSlowerWindowDetectionToolStripMenuItem_Click); // - // toolStripViewFullProcessDetails + // viewFullProcessDetailsToolStripMenuItem // resources.ApplyResources(this.toolStripViewFullProcessDetails, "toolStripViewFullProcessDetails"); this.toolStripViewFullProcessDetails.CheckOnClick = true; + this.toolStripViewFullProcessDetails.Text = LanguageManager.Data("toolStripViewFullProcessDetails"); this.toolStripViewFullProcessDetails.Name = "toolStripViewFullProcessDetails"; this.toolStripViewFullProcessDetails.CheckedChanged += new System.EventHandler(this.viewFullProcessDetailsToolStripMenuItem_CheckedChanged); // @@ -525,10 +558,11 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem10, "toolStripMenuItem10"); this.toolStripMenuItem10.Name = "toolStripMenuItem10"; // - // toolStripRestoreProcesses + // resToolStripMenuItem // resources.ApplyResources(this.toolStripRestoreProcesses, "toolStripRestoreProcesses"); this.toolStripRestoreProcesses.Name = "toolStripRestoreProcesses"; + this.toolStripRestoreProcesses.Text = LanguageManager.Data("toolStripRestoreProcesses"); this.toolStripRestoreProcesses.Click += new System.EventHandler(this.resetHiddenProcessesToolStripMenuItem_Click); // // toolsToolStripMenuItem @@ -543,18 +577,21 @@ private void InitializeComponent() this.toolStripMenuItem12, this.toolStripFullApplicationRefresh}); this.toolsToolStripMenuItem.Name = "toolsToolStripMenuItem"; + this.toolsToolStripMenuItem.Text = LanguageManager.Data("toolsToolStripMenuItem"); // - // toolStripPauseAutomaticProcessing + // pauseAutomaticProcessingToolStripMenuItem // resources.ApplyResources(this.toolStripPauseAutomaticProcessing, "toolStripPauseAutomaticProcessing"); this.toolStripPauseAutomaticProcessing.CheckOnClick = true; + this.toolStripPauseAutomaticProcessing.Text = LanguageManager.Data("toolStripPauseAutomaticProcessing"); this.toolStripPauseAutomaticProcessing.Name = "toolStripPauseAutomaticProcessing"; this.toolStripPauseAutomaticProcessing.Click += new System.EventHandler(this.pauseAutomaticProcessingToolStripMenuItem_Click); // - // toolStripOpenDataFolder + // openDataFolderToolStripMenuItem // resources.ApplyResources(this.toolStripOpenDataFolder, "toolStripOpenDataFolder"); this.toolStripOpenDataFolder.Name = "toolStripOpenDataFolder"; + this.toolStripOpenDataFolder.Text = LanguageManager.Data("toolStripOpenDataFolder"); this.toolStripOpenDataFolder.Click += new System.EventHandler(this.openDataFolderToolStripMenuItem_Click); // // toolStripMenuItem11 @@ -562,34 +599,44 @@ private void InitializeComponent() resources.ApplyResources(this.toolStripMenuItem11, "toolStripMenuItem11"); this.toolStripMenuItem11.Name = "toolStripMenuItem11"; // - // toolStripToggleMouseCursorVisibility + // toggleMouseCursorVisibilityToolStripMenuItem // resources.ApplyResources(this.toolStripToggleMouseCursorVisibility, "toolStripToggleMouseCursorVisibility"); this.toolStripToggleMouseCursorVisibility.Name = "toolStripToggleMouseCursorVisibility"; + this.toolStripToggleMouseCursorVisibility.Text = + LanguageManager.Data("toolStripToggleMouseCursorVisibility"); this.toolStripToggleMouseCursorVisibility.Click += new System.EventHandler(this.toggleMouseCursorVisibilityToolStripMenuItem_Click); // - // toolStripToggleWindowsTaskbar + // toggleWindowsTaskbarVisibilityToolStripMenuItem // resources.ApplyResources(this.toolStripToggleWindowsTaskbar, "toolStripToggleWindowsTaskbar"); this.toolStripToggleWindowsTaskbar.Name = "toolStripToggleWindowsTaskbar"; + this.toolStripToggleWindowsTaskbar.Text = LanguageManager.Data("toolStripToggleWindowsTaskbar"); this.toolStripToggleWindowsTaskbar.Click += new System.EventHandler(this.toggleWindowsTaskbarVisibilityToolStripMenuItem_Click); + // + // rainwayStrip + // + resources.ApplyResources(this.rainwayStrip, "rainwayStrip"); + this.rainwayStrip.Text = "Check Out Raiway"; + this.rainwayStrip.Image = Resources.master_glyph; + this.rainwayStrip.Click += new System.EventHandler(this.checkOutRainwayToolStripMenuItem_Click); // // toolStripMenuItem12 // resources.ApplyResources(this.toolStripMenuItem12, "toolStripMenuItem12"); this.toolStripMenuItem12.Name = "toolStripMenuItem12"; // - // toolStripFullApplicationRefresh + // fullApplicationRefreshToolStripMenuItem // resources.ApplyResources(this.toolStripFullApplicationRefresh, "toolStripFullApplicationRefresh"); this.toolStripFullApplicationRefresh.Name = "toolStripFullApplicationRefresh"; + this.toolStripFullApplicationRefresh.Text = LanguageManager.Data("toolStripFullApplicationRefresh"); this.toolStripFullApplicationRefresh.Click += new System.EventHandler(this.fullApplicationRefreshToolStripMenuItem_Click); // // toolStripInfo // resources.ApplyResources(this.toolStripInfo, "toolStripInfo"); this.toolStripInfo.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripRainway, this.toolStripUsageGuide, this.toolStripRegexReference, this.toolStripMenuItem13, @@ -598,24 +645,21 @@ private void InitializeComponent() this.toolStripMenuItem2, this.toolStripAbout}); this.toolStripInfo.Name = "toolStripInfo"; + this.toolStripInfo.Text = + LanguageManager.Data("toolStripInfo"); // - // toolStripRainway - // - resources.ApplyResources(this.toolStripRainway, "toolStripRainway"); - this.toolStripRainway.Text = "Rainway"; - this.toolStripRainway.Name = "toolStripRainway"; - this.toolStripRainway.Click += new System.EventHandler(this.rainwayToolStrip_Click); - // - // toolStripUsageGuide + // usageGuideToolStripMenuItem // resources.ApplyResources(this.toolStripUsageGuide, "toolStripUsageGuide"); this.toolStripUsageGuide.Name = "toolStripUsageGuide"; + this.toolStripUsageGuide.Text = LanguageManager.Data("toolStripUsageGuide"); this.toolStripUsageGuide.Click += new System.EventHandler(this.usageGuideToolStripMenuItem_Click); // // toolStripRegexReference // resources.ApplyResources(this.toolStripRegexReference, "toolStripRegexReference"); this.toolStripRegexReference.Name = "toolStripRegexReference"; + this.toolStripRegexReference.Text = LanguageManager.Data("toolStripRegexReference"); this.toolStripRegexReference.Click += new System.EventHandler(this.toolStripRegexReference_Click); // // toolStripMenuItem13 @@ -627,12 +671,14 @@ private void InitializeComponent() // resources.ApplyResources(this.toolStripReportBug, "toolStripReportBug"); this.toolStripReportBug.Name = "toolStripReportBug"; + this.toolStripReportBug.Text = LanguageManager.Data("toolStripReportBug"); this.toolStripReportBug.Click += new System.EventHandler(this.toolStripReportBug_Click); // // toolStripSupportUs // resources.ApplyResources(this.toolStripSupportUs, "toolStripSupportUs"); this.toolStripSupportUs.Name = "toolStripSupportUs"; + this.toolStripSupportUs.Text = LanguageManager.Data("toolStripSupportUs"); this.toolStripSupportUs.Click += new System.EventHandler(this.toolStripSupportUs_Click); // // toolStripMenuItem2 @@ -644,6 +690,7 @@ private void InitializeComponent() // resources.ApplyResources(this.toolStripAbout, "toolStripAbout"); this.toolStripAbout.Name = "toolStripAbout"; + this.toolStripAbout.Text = LanguageManager.Data("toolStripAbout"); this.toolStripAbout.Click += new System.EventHandler(this.toolStripAbout_Click); // // tableLayoutPanel1 @@ -681,10 +728,17 @@ private void InitializeComponent() this.statusLabel}); this.statusStrip1.Name = "statusStrip1"; // - // statusLabel + // lblUpdateStatus // resources.ApplyResources(this.statusLabel, "statusLabel"); this.statusLabel.Name = "statusLabel"; + this.statusLabel.Text = LanguageManager.Data("statusLabel"); + // + // toolStripLanguages + // + resources.ApplyResources(this.toolStripLanguages, "toolStripLanguages"); + this.toolStripLanguages.Name = "toolStripLanguages"; + this.toolStripLanguages.Text = LanguageManager.Data("toolStripLanguages"); // // MainWindow // @@ -733,9 +787,10 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem toolStripOptions; private System.Windows.Forms.ToolStripMenuItem toolStripRunOnStartup; private System.Windows.Forms.ToolStripMenuItem toolStripInfo; + private System.Windows.Forms.ToolStripMenuItem rainwayStrip; private System.Windows.Forms.ToolStripMenuItem toolStripReportBug; private System.Windows.Forms.ToolStripMenuItem toolStripSupportUs; - private System.Windows.Forms.ToolStripMenuItem toolStripRegexReference; + private System.Windows.Forms.ToolStripMenuItem toolStripRegexReference; private System.Windows.Forms.ToolStripMenuItem toolStripAbout; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; @@ -750,7 +805,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem toolStripMouseLock; private System.Windows.Forms.ToolStripMenuItem toolStripByTheWindowTitle; private System.Windows.Forms.ToolStripMenuItem toolStripByProcess; - private System.Windows.Forms.ToolStripMenuItem toolStripByRegex; + private System.Windows.Forms.ToolStripMenuItem toolStripByRegex; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2; @@ -793,7 +848,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem toolStripFullApplicationRefresh; private System.Windows.Forms.ToolStripMenuItem toolStripSlowWindowDetection; private System.Windows.Forms.ToolStripMenuItem toolStripUsageGuide; - private System.Windows.Forms.ToolStripMenuItem toolStripRainway; private System.Windows.Forms.ToolStripSeparator toolStripMenuItem13; private System.Windows.Forms.ToolStripMenuItem toolStripMuteInBackground; private System.Windows.Forms.ToolStripMenuItem toolStripLanguages; diff --git a/BorderlessGaming/Forms/MainWindow.cs b/BorderlessGaming/Forms/MainWindow.cs index 0e52b22..8b0c48f 100644 --- a/BorderlessGaming/Forms/MainWindow.cs +++ b/BorderlessGaming/Forms/MainWindow.cs @@ -1225,5 +1225,10 @@ private void muteInBackgroundToolStripMenuItem_Click(object sender, EventArgs e) } RefreshFavoritesList(fav); } + + private void checkOutRainwayToolStripMenuItem_Click(object sender, EventArgs e) + { + Tools.GotoSite("https://rainway.io/?ref=borderlessgaming3"); + } } } \ No newline at end of file diff --git a/BorderlessGaming/Forms/MainWindow.en-US.resx b/BorderlessGaming/Forms/MainWindow.en-US.resx index 830b98a..bb324d6 100644 --- a/BorderlessGaming/Forms/MainWindow.en-US.resx +++ b/BorderlessGaming/Forms/MainWindow.en-US.resx @@ -724,9 +724,6 @@ 316, 22 - - Language - 316, 22 @@ -793,7 +790,31 @@ 47, 27 - + + 160, 22 + + + 160, 22 + + + 157, 6 + + + 160, 22 + + + 160, 22 + + + 157, 6 + + + 160, 22 + + + 44, 27 + + iVBORw0KGgoAAAANSUhEUgAAAIQAAACWCAYAAAAfWiA3AAAABGdBTUEAALGPC/xhBQAAEwRJREFUeF7t nQuQHMV5x0WU2NhxiB0nIbGTWOXIpMKBAsaS7m7ndYY4ED+wU1wSP3iYGJy4wEGJ/CjAZGNLdzvds3c2 @@ -880,32 +901,11 @@ fxxJPk72nkr8AAAAAElFTkSuQmCC - - Rainway - - - 160, 22 - - - 160, 22 - - - 157, 6 - - - 160, 22 - - - 160, 22 - - - 157, 6 - - - 160, 22 + + 131, 27 - - 44, 27 + + Check Out Raiway 0, 31 diff --git a/BorderlessGaming/Forms/MainWindow.resx b/BorderlessGaming/Forms/MainWindow.resx index c0bc64a..427c36e 100644 --- a/BorderlessGaming/Forms/MainWindow.resx +++ b/BorderlessGaming/Forms/MainWindow.resx @@ -133,6 +133,10 @@ Fill + + + 52, 25 + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -148,10 +152,6 @@ toolStripSetWindowTitle - - 4 - - 348, 22 @@ -167,6 +167,9 @@ 1 + + rainwayStrip + toolStripOpenDataFolder @@ -191,12 +194,12 @@ 204, 22 - - No Size Change - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + toolStripSupportUs + &Help @@ -206,6 +209,9 @@ 3 + + btnRestoreWindow + 348, 22 @@ -233,9 +239,6 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 226, 22 - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -279,9 +282,6 @@ 3 - - 12 - 174, 22 @@ -294,9 +294,6 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -309,6 +306,9 @@ tableLayoutPanel1 + + Favorites (automatic): + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -333,9 +333,6 @@ 3, 81 - - flowLayoutPanel1 - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -363,9 +360,6 @@ 6, 12 - - 471, 222 - System.Windows.Forms.NotifyIcon, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -393,12 +387,12 @@ 207, 22 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Borderless Gaming - - 345, 6 - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -432,12 +426,18 @@ System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 348, 22 + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 226, 22 + + Full Application Refresh + $this @@ -459,6 +459,9 @@ favoritesLabel + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -486,6 +489,9 @@ 212, 22 + + 3 + flowLayoutPanel1 @@ -516,9 +522,6 @@ Select Favorite Screen... - - 204, 22 - toolStripFullApplicationRefresh @@ -534,6 +537,9 @@ 425, 297 + + 3 + trayIconContextMenu @@ -558,11 +564,8 @@ System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 223, 6 + + 226, 22 tableLayoutPanel1 @@ -594,6 +597,9 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -603,12 +609,15 @@ 104, 18 - - btnRestoreWindow + + System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 7 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + Auto-Maximize @@ -636,15 +645,12 @@ Close To Tray - - lstFavorites + + 345, 6 statusStrip1 - - System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -1205,6 +1211,9 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + rainwayMenuItem + True @@ -1699,6 +1708,9 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + + 0 + tableLayoutPanel1 @@ -1741,9 +1753,6 @@ System.Windows.Forms.MenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 207, 22 - 10 @@ -1759,6 +1768,9 @@ flowLayoutPanel1 + + lstFavorites + toolStripRegexReference @@ -1801,6 +1813,9 @@ System.Windows.Forms.ListBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 160, 22 + 276, 22 @@ -1819,6 +1834,9 @@ 471, 29 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -1882,9 +1900,6 @@ System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - 268, 22 @@ -1936,6 +1951,9 @@ 160, 22 + + checkOutRainwayToolStripMenuItem + addSelectedItem @@ -1969,9 +1987,15 @@ 316, 22 + + 204, 22 + 223, 6 + + 131, 27 + toolStripMenuItem14 @@ -1981,9 +2005,6 @@ toolStripMenuItem2 - - 208, 206 - Remove Menus @@ -1996,11 +2017,11 @@ System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 0 + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 4 Hide Balloon Tips @@ -2014,8 +2035,8 @@ toolStripUsageGuide - - 3 + + 223, 6 statusStrip1 @@ -2023,6 +2044,9 @@ Toggle Mouse Cursor Visibility + + processContext + Top, Left, Right @@ -2038,9 +2062,6 @@ Top, Bottom, Left, Right - - 259, 21 - System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -2059,11 +2080,11 @@ 345, 6 - - toolStripSupportUs + + 204, 22 - - 348, 22 + + 226, 22 Hide This Process @@ -2080,6 +2101,9 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + mnuMain + toolsToolStripMenuItem @@ -2110,8 +2134,11 @@ System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Favorites (automatic): + + flowLayoutPanel1 + + + 16 True @@ -2137,8 +2164,8 @@ 18 - - 204, 22 + + 471, 222 2 @@ -2152,11 +2179,11 @@ toolStripMenuItem1 - - System.Windows.Forms.FlowLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 226, 22 + + 122, 27 btnRemoveFavorite @@ -2170,17 +2197,17 @@ Use Mouse Lock Hotkey (Scroll Lock) - - 16 + + 259, 21 - - Full Application Refresh + + No Size Change System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - mnuMain + + 12 contextMuteInBackground @@ -2197,11 +2224,11 @@ 64, 17 - - 52, 25 + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - processContext + + 208, 206 Report a Bug @@ -2209,8 +2236,8 @@ 223, 6 - - 3 + + 207, 22 Mute In Background @@ -2218,8 +2245,8 @@ 745, 17 - - 175, 19 + + 16, 19 394, 23 @@ -2233,8 +2260,8 @@ True - - 16, 19 + + 175, 19 885, 17 diff --git a/BorderlessGaming/Properties/AssemblyInfo.cs b/BorderlessGaming/Properties/AssemblyInfo.cs index 0091b6e..f3c2aab 100644 --- a/BorderlessGaming/Properties/AssemblyInfo.cs +++ b/BorderlessGaming/Properties/AssemblyInfo.cs @@ -36,6 +36,6 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("9.5.3.1328")] -[assembly: AssemblyFileVersion("9.5.3.1328")] +[assembly: AssemblyVersion("9.5.4.1328")] +[assembly: AssemblyFileVersion("9.5.4.1328")] [assembly: NeutralResourcesLanguage("en-US")] \ No newline at end of file diff --git a/BorderlessGaming/Properties/Resources.Designer.cs b/BorderlessGaming/Properties/Resources.Designer.cs index 2fb5d46..f107dd0 100644 --- a/BorderlessGaming/Properties/Resources.Designer.cs +++ b/BorderlessGaming/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace BorderlessGaming.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { @@ -145,6 +145,16 @@ internal static string InfoUpdatesHeader { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap master_glyph { + get { + object obj = ResourceManager.GetObject("master_glyph", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/BorderlessGaming/Properties/Resources.resx b/BorderlessGaming/Properties/Resources.resx index 3f9468a..a5c78bc 100644 --- a/BorderlessGaming/Properties/Resources.resx +++ b/BorderlessGaming/Properties/Resources.resx @@ -154,4 +154,7 @@ ..\Resources\steam.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\master-glyph.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/BorderlessGaming/Resources/RainwayLogo.bmp b/BorderlessGaming/Resources/RainwayLogo.bmp new file mode 100644 index 0000000..55516c7 Binary files /dev/null and b/BorderlessGaming/Resources/RainwayLogo.bmp differ diff --git a/BorderlessGaming/Resources/master-glyph.png b/BorderlessGaming/Resources/master-glyph.png new file mode 100644 index 0000000..5d8a02e Binary files /dev/null and b/BorderlessGaming/Resources/master-glyph.png differ