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); }
public FileLogger(FileProjectStore projectStore) { FilePath = Path.Combine(projectStore.ProjectDir, $"{nameof(Webshot)}.log"); }