private void method_2(object sender, EventArgs0 e) { if (base.InvokeRequired) { ActionsWindow.Delegate7 method = new ActionsWindow.Delegate7(this.method_2); base.Invoke(method, new object[] { sender, e }); return; } RichTextBox expr_34 = this.ActionsTxt; expr_34.Text += e.method_0(); this.ActionsTxt.ScrollToCaret(); this.progressBar.Value = e.method_1(); if (e.method_0().StartsWith("FAILED")) { this.bool_0 = true; } if (e.method_1() == 100) { Control arg_9C_0 = this.CloseBtn; this.ViewLogBtn.Enabled = true; arg_9C_0.Enabled = true; this.eventHandler_0(this, EventArgs.Empty); } }
public void method_1() { EventArgs0 e; foreach (QbEditor current in this.actionList) { int int_ = 100 * this.actionList.IndexOf(current) / this.actionList.Count; e = new EventArgs0(current.ToString() + " Processing...", int_); this.delegate6_0(this, e); string finalStatus; using (new Class217(current.ToString())) { if (current.method_0()) { finalStatus = "DONE!\n"; } else { finalStatus = "FAILED!\n"; } } e = new EventArgs0(finalStatus, int_); this.delegate6_0(this, e); } e = new EventArgs0("", 100); this.delegate6_0(this, e); }