Пример #1
0
 private void generateClass(CommandType commandType, string commandText)
 {
     ProgressStatusLabel.Text = @"Working...";
     try
     {
         InvokeDisableForm();
         _domainManager.GeneratorOptions = getGeneratorOptions();
         _domainManager.CreateClass(commandType, commandText);
         ProgressStatusLabel.Text = @"Done.";
         MessageBox.Show($"Class created for {commandText}");
     }
     catch (Exception e)
     {
         ProgressStatusLabel.Text = @"Error";
         MessageBox.Show(e.ToString(), @"Error generating class");
     }
     finally
     {
         InvokeEnableForm();
     }
 }