private static void Main(string[] args) { var path = args.Length > 0 ? args[0] : null; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var factory = new MasterFactory(path); TabsTools.SetupCatcher(factory.Name); var form = new MainForm(factory); form.Size = new Size(1200, 600); Application.Run(form); }
private static void Main(string[] args) { //SetHighDpiMode introduced in net5-win //Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var path = args.Length > 0 ? args[0] : null; TabsTools.IsDebug = Program.IsDebug; var factory = new TerminalFactory(path); TabsTools.SetupCatcher(factory.Name); //SharpLogger.LogDebug.Enable(typeof(LogView).Name); //SharpLogger.LogDebug.AddDefaultFile(); Application.Run(new MainForm(factory)); }
public ISessionDto[] Load(string path) { SessionDao.Exec(path, (db) => { if (TabsTools.IsDebug()) { //force migration db.Engine.UserVersion = 0; } //migration if (db.Engine.UserVersion < 1) { var assy = typeof(MasterDto).Assembly.FullName; var type = typeof(MasterDto).FullName; db.Engine.Run($"db.sessions.update _type='{type}, {assy}'"); db.Engine.UserVersion = 1; } }); return(SessionDao.Load <MasterDto>(path)); }
void MainFormLoad(object sender, EventArgs e) { Icon = TabsTools.ExeIcon(); }