static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RB_Tools.Shared.Cli.Options commandLineOptions = new RB_Tools.Shared.Cli.Options(); if (CommandLine.Parser.Default.ParseArguments(args, commandLineOptions)) { // Create our logger Logging.Type loggingType = (commandLineOptions.Logging == true ? Logging.Type.File : Logging.Type.Null); Logging logger = Logging.Create("Create Review", loggingType, Logging.Threading.MultiThread); // Copy user settings from previous version if necessary UpdateVersionSettings(); // Build up the content we've been asked to review // If we don't have any, we've already complained Review.Review.Content requestContent = Review.Review.ExtractContent(commandLineOptions.SkipReviews, commandLineOptions.FileList, commandLineOptions.InjectPaths, logger); if (requestContent == null) { return; } // Run the dialog Application.Run(new CreateReview(commandLineOptions.FileList, requestContent, logger)); } }
static void Main(string[] args) { RB_Tools.Shared.Cli.Options commandLineOptions = new RB_Tools.Shared.Cli.Options(); if (CommandLine.Parser.Default.ParseArguments(args, commandLineOptions)) { // Create our logger Logging.Type loggingType = (commandLineOptions.Logging == true ? Logging.Type.File : Logging.Type.Null); Logging logger = Logging.Create("Settings", loggingType, Logging.Threading.MultiThread); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Dialogs.SettingOptions(logger)); } }
static void Main(string[] args) { // Set up Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RB_Tools.Shared.Cli.Options commandLineOptions = new RB_Tools.Shared.Cli.Options(); if (CommandLine.Parser.Default.ParseArguments(args, commandLineOptions)) { // Create our logger Logging.Type loggingType = (commandLineOptions.Logging == true ? Logging.Type.File : Logging.Type.Null); Logging logger = Logging.Create("Generate Review Stats", loggingType, Logging.Threading.MultiThread); // Run the dialog Application.Run(new Dialogs.Progress(commandLineOptions.FileList, commandLineOptions.InjectPaths, logger)); } }