public static DataTable zSetResult(this DataTable table) { if (table != null) { //RunSource.CurrentRunSource.SetResult(table); RunSourceCommand.SetResult(table); } else { Trace.WriteLine("value is null"); } return(table); }
public static DataTable zView_v2 <T>(this T value) { DataTable table = null; if (value != null) { if (!(value is DataTable)) { table = value.zToDataTable_v2(); } else { table = value as DataTable; } //RunSource.CurrentRunSource.SetResult(table); RunSourceCommand.SetResult(table); } else { Trace.WriteLine("value is null"); } return(table); }
public static string zGetRunSourceProjectPath(this string value, bool throwError = false) { //return RunSource.CurrentRunSource.GetFilePath(RunSource.CurrentRunSource.GetProjectVariableValue(value, throwError)); return(RunSourceCommand.GetFilePath(RunSourceCommand.GetProjectVariableValue(value, throwError))); }