static void Main(string[] args) { //util.test_normalized_times(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); log4net.Config.XmlConfigurator.Configure(new FileInfo("LogWizard.exe.config")); util.force_break_into_debugger(); if (!util.is_debug) { Environment.CurrentDirectory = local_dir(); if (!File.Exists("logwizard_user.txt")) { File.Copy("logwizard.txt", "logwizard_user.txt"); } } sett_ = new settings_file(util.is_debug ? "logwizard_debug.txt" : "logwizard_user.txt"); if (args.Length > 0 && args[0] == "showsample") { try { Process.Start(Assembly.GetExecutingAssembly().Location, new FileInfo("LogWizardSetupSample.log").FullName); } catch (Exception e) { MessageBox.Show("Exception " + e.Message); } return; } if (args.Length > 0 && File.Exists(args[0])) { open_file_name_ = args[0]; } if (open_file_name_ != null) { wait_for_setup_kit_to_complete(); } Application.Run(new Dummy()); }
static void Main(string[] args) { //util.test_normalized_times(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); log4net.Config.XmlConfigurator.Configure( new FileInfo("LogWizard.exe.config")); util.force_break_into_debugger(); if (!util.is_debug) { Environment.CurrentDirectory = local_dir(); if ( !File.Exists("logwizard_user.txt")) File.Copy("logwizard.txt", "logwizard_user.txt"); } sett_ = new settings_file(util.is_debug ? "logwizard_debug.txt" : "logwizard_user.txt"); if (args.Length > 0 && args[0] == "showsample") { try { Process.Start( Assembly.GetExecutingAssembly().Location, new FileInfo("LogWizardSetupSample.log").FullName); } catch(Exception e) { MessageBox.Show("Exception " + e.Message); } return; } if ( args.Length > 0 && File.Exists(args[0])) open_file_name_ = args[0]; if (open_file_name_ != null) wait_for_setup_kit_to_complete(); Application.Run(new Dummy()); }