Ejemplo n.º 1
0
        private static void Main(params string[] args)
        {
            if (Environment.OSVersion.Version.Major >= 6)
            {
                SetProcessDPIAware();
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var projectPath = File.Exists(args.FirstOrDefault())
                ? args.FirstOrDefault()
                : FileProjectStore.CreateTempProjectDirectory(temporaryDir: true);

            var form = CreateForm(projectPath);

            Application.Run(form);
        }
Ejemplo n.º 2
0
 public FileLogger(FileProjectStore projectStore)
 {
     FilePath = Path.Combine(projectStore.ProjectDir, $"{nameof(Webshot)}.log");
 }