public Form1() { frm = this; InitializeComponent(); timer1.Interval = 100; timer1.Enabled = false; Result1FuncPtr = this.Result1CB; Result2FuncPtr = this.Result2CB; TraceFuncPtr = this.TRaceCB; }
private void FuncHelp(string funcName, FuncType1 func1, FuncType2 func2 = null, FuncType3 func3 = null, FuncType4 func4 = null) { Console.WriteLine($"\n{funcName}"); try { if (func1 != null) { func1("", new string[] { "--help" }); } else if (func2 != null) { func2("", new string[] { "--help" }, null, null, null); } else { func3("", new string[] { "--help" }, null, null, null, out var gender); } } catch (Exception e) { Console.WriteLine(e.Message); } }
public Form1() { InitializeComponent(); WorkerMessageFuncPtr = this.RecvMessageFromWorker; frm = this; }