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; }
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; }
private void General_Load(object sender, EventArgs e) { GenerateProcessManager.GetManager().Status += details => Invoke((Action)(() => txtResult.Text += $"{details}\r\n"));; }