// Token: 0x060000C0 RID: 192 RVA: 0x000B958C File Offset: 0x000B858C private void btnCleanup_Click(object sender, EventArgs e) { if (this.WorkId == 0) { clsCleanup clsCleanup = new clsCleanup(); clsCleanup.Cleanup(this.txtInputCleanup.Text, this.txtOutput.Text, this.txtConfigCleanup.Text, this.txtLogCleanup.Text); //Interaction.MsgBox("Over", MsgBoxStyle.OkOnly, null); } else if (this.WorkId == 1) { clsRemoveEmphasis clsRemoveEmphasis = new clsRemoveEmphasis(); clsRemoveEmphasis.RemoveEmphasis(this.txtInputCleanup.Text, this.txtOutput.Text, this.txtConfigCleanup.Text, this.txtLogCleanup.Text); //Interaction.MsgBox("Over", MsgBoxStyle.OkOnly, null); } else if (this.WorkId == 2) { clsValidation clsValidation = new clsValidation(); clsValidation.Validate(this.txtInputCleanup.Text, this.txtOutput.Text, this.txtConfigCleanup.Text, this.txtLogCleanup.Text); //Interaction.MsgBox("Over", MsgBoxStyle.OkOnly, null); } else { Interaction.MsgBox("Can not perform this operation!!!!", MsgBoxStyle.OkOnly, null); } }
private void button1_Click_1(object sender, EventArgs e) { string[] outs = Directory.GetFiles(textBox1.Text, "*.out", SearchOption.AllDirectories); int a = 0; progressBar1.Maximum = outs.Length; foreach (string o in outs) { string o_name = Path.GetFileNameWithoutExtension(o); string o_output = Path.GetDirectoryName(o) + "\\" + o_name + ".visf"; clsCleanup clsCleanup = new clsCleanup(); clsCleanup.Cleanup(o, o_output, "E1897.xml", o_name + ".log"); rep_a0(o_output); progressBar1.Value = ++a; } MessageBox.Show("Cleaned " + outs.Length + " file(s)."); }