private void Generate() { GCode = new GenerateCode(TargetGenerate, Options.Type, Options.WithCoockie, Options.WithHeaders); if (GCode.DirectoryNotFoundException()) { WindowsManager.Message("Project path error", "Directory path of project not found"); return; } GCode.Generate(); if (Options.OpenFolder) { Process.Start(TargetGenerate.ProjectPath); } }