Esempio n. 1
0
 private void btnLoad_Click(object sender, EventArgs e)
 {
     GenerateProcessManager.GetManager().LoadClassData(Constants.CLASS_DATA_XML);
     GenerateProcessManager.GetManager().LoadRules(Constants.RULES_XML);
     grCreate.Enabled = true;
     btnLoad.Enabled  = false;
 }
Esempio n. 2
0
 private async void btnCreater_Click(object sender, EventArgs e)
 {
     txtResult.Text     = "";
     btnCreater.Enabled = false;
     grImport.Enabled   = false;
     try
     {
         await Task.Factory.StartNew(() =>
         {
             GenerateProcessManager.GetManager().ClassesCreater(Convert.ToInt32(nmCreater.Value), directoryPath);
         });
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
     }
     btnCreater.Enabled = true;
     grImport.Enabled   = true;
 }
Esempio n. 3
0
 private void General_Load(object sender, EventArgs e)
 {
     GenerateProcessManager.GetManager().Status += details => Invoke((Action)(() => txtResult.Text += $"{details}\r\n"));;
 }