void f_FuncEventHandler(object sender, FuncEventArgs e) { if (e.WorkStatus == WorkStatus.Stop) { btnStop_Click(sender, e); } }
public static void OnFuncAfter(FuncEventArgs args) { Console.WriteLine(":" + "ExecuteSuccess"); }
public static ExceptionCategory OnException(FuncEventArgs args) { Console.WriteLine(":" + "Exceptioned"); return(ExceptionCategory.Handle); }
public static bool OnFuncBefore(FuncEventArgs args) { Console.WriteLine(":" + "Executeing"); return(true); }