public MainForm(NgenType type, string path) { Initialize(); //closeAfterProcess = true; txtPath.Text = path; Shown += (obj, e) => StartNgen(type); }
public Ngen(Form form, NgenType type, string path) { this.form = form; this.Type = type; this.FileName = path; this.State = NgenState.Ready; }
private void StartNgen(NgenType type) { if (Processing == false && (type == NgenType.Update || CheckPath(txtPath.Text))) { Processing = true; ngen = new Ngen(this, type, txtPath.Text); ngen.Exited += ngen_Exited; ngen.ProgressChanged += ngen_ProgressChanged; ngen.Start(); } else { MessageBox.Show(Resource.PathMissing); } }