static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); masterForm = new MasterForm(); Application.ApplicationExit += Application_ApplicationExit; Application.Run(masterForm); }
private void Form1_Load(object sender, EventArgs e) { Properties.Settings.Default.ResourcePath = "NoneSet"; Properties.Settings.Default.Save(); string defaultPath = (String)Properties.Settings.Default.ResourcePath; if (defaultPath.Equals("NoneSet")) { Console.WriteLine("Changing"); UpdateResourcePath(resourcePath); Properties.Settings.Default.ResourcePath = resourcePath; Properties.Settings.Default.Save(); } else UpdateResourcePath(defaultPath); if (!Directory.Exists(resourcePath)) Directory.CreateDirectory(resourcePath); LoadSettings(); LoadClipboard(); thisForm = this; }