protected override void Method() { int lineIndex; if (int.TryParse(Parameters[0], out lineIndex) && lineIndex > 0) { FunctionManager.Run(lineIndex); } }
private void bw_DoWork(object sender, DoWorkEventArgs e) { string[] lines = e.Argument as string[]; try { functionManager.Compile(lines); functionManager.Run(); } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }