Пример #1
0
        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);
        }
Пример #2
0
        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));
        }
Пример #3
0
 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));
 }
Пример #4
0
 void MainFormLoad(object sender, EventArgs e)
 {
     Icon = TabsTools.ExeIcon();
 }