public static void SetDefaults() { AutoHideMenuBar = true; WindowMaximized = false; if (Application.OpenForms.Count > 0) { WindowBounds = Application.OpenForms[0].Bounds; } else { int x = (Screen.PrimaryScreen.Bounds.Width - 800) / 2; int y = (Screen.PrimaryScreen.Bounds.Height - 600) / 2; WindowBounds = new Rectangle(x, y, 800, 600); } AutoOpen = true; RecentlyOpened = new List <string>(); RecentPriority = false; AutoSaveConfig = true; ProjectConfig = false; DistractionMode = new Serializable.DistracionMode(false, false); ScriptStyles = GetScriptStyles(); AutoComplete = false; AutoCompleteLength = 2; AutoCompleteFlag = 0; AutoCompleteCustomWords = ""; AutoCompleteWords = new List <string>(); AutoIndent = true; GuideLines = true; LineHighLight = false; LineHighLightColor = Color.FromArgb(50, 195, 216, 255); CodeFolding = true; AutoCheckUpdates = false; }
public static void SetDefaults() { AutoHideMenuBar = true; WindowMaximized = false; if (Application.OpenForms.Count > 0) WindowBounds = Application.OpenForms[0].Bounds; else { int x = (Screen.PrimaryScreen.Bounds.Width - 800) / 2; int y = (Screen.PrimaryScreen.Bounds.Height - 600) / 2; WindowBounds = new Rectangle(x, y, 800, 600); } AutoOpen = true; RecentlyOpened = new List<string>(); RecentPriority = false; AutoSaveConfig = true; ProjectConfig = false; DistractionMode = new Serializable.DistracionMode(false, false); ScriptStyles = GetScriptStyles(); AutoComplete = false; AutoCompleteLength = 2; AutoCompleteFlag = 0; AutoCompleteCustomWords = ""; AutoCompleteWords = new List<string>(); AutoIndent = true; GuideLines = true; LineHighLight = false; LineHighLightColor = Color.FromArgb(50, 195, 216, 255); CodeFolding = true; AutoCheckUpdates = false; }