Ejemplo n.º 1
0
 public MainForm(NgenType type, string path)
 {
     Initialize();
     //closeAfterProcess = true;
     txtPath.Text = path;
     Shown += (obj, e) => StartNgen(type);
 }
Ejemplo n.º 2
0
 public Ngen(Form form, NgenType type, string path)
 {
     this.form = form;
     this.Type = type;
     this.FileName = path;
     this.State = NgenState.Ready;
 }
Ejemplo n.º 3
0
 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);
     }
 }