private void PrintException(CASProgressInfo argInfo) { if (argInfo.Ex != null) { mActions.PrintException(argInfo.Ex); } }
private void SetTitle(CASProgressInfo argInfo) { if (!string.IsNullOrEmpty(argInfo.Text)) { mActions.SetTitle(argInfo.Text); } }
private void Print(CASProgressInfo argInfo) { if (!string.IsNullOrEmpty(argInfo.Text)) { mActions.Print(argInfo.Text, argInfo.NewLine); } }
public void ProgressInfo(CASProgressInfo argInfo) { switch (argInfo.Type) { case ECASProgressType.SetTitle: SetTitle(argInfo); break; case ECASProgressType.Print: Print(argInfo); break; case ECASProgressType.PrintException: PrintException(argInfo); break; } }