public formMain() { InitializeComponent(); string basePath = Path.Combine(AssemblyHelper.DirectoryName, GetType().Namespace + "."); ExceptionHandler.LogFile = basePath + ExceptionHandler.BaseFileName; settings = Settings.Load <Settings>(basePath + Settings.BaseFileName); // localize the form Localization.LocaleFile = basePath + Localization.BaseFileName; SetLocale(settings.LanguageCode, true); // set the form caption this.Text = AssemblyHelper.Title; FontHelper.ApplySystemFont(this); // initialize the update checking UpdateHelper.UpdateCheckUrl = UpdateHelper.UpdateCheckBase + this.GetType().Namespace + UpdateHelper.FileExtension; if (Arguments.Length > 0) { // load the file from the command line if (File.Exists(Arguments[0])) { LoadFile(Arguments[0]); } } }