Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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)));
 }