コード例 #1
0
 public void Run(IProgressMonitor monitor, DotNetProject project, ConfigurationSelector configuration)
 {
     lock (this) {
         try {
             Stetic.CodeGenerationResult res = GuiBuilderService.GenerateSteticCode(monitor, project, configuration);
             if (res != null)
             {
                 Messages = res.Warnings;
             }
         } catch (Exception ex) {
             Error = ex;
             LoggingService.LogError(ex.ToString());
             Messages = new string [] { Error.Message };
         }
         Monitor.PulseAll(this);
     }
 }
コード例 #2
0
        public async Task <bool> Run(ProgressMonitor monitor, DotNetProject project, ConfigurationSelector configuration)
        {
            try {
                Stetic.CodeGenerationResult res = await GuiBuilderService.GenerateSteticCode(monitor, project, configuration);

                if (res != null)
                {
                    Messages = res.Warnings;
                }
                return(true);
            } catch (Exception ex) {
                Error = ex;
                LoggingService.LogError(ex.ToString());
                Messages = new  [] { Error.Message };
                return(false);
            }
        }