/// <summary> /// Returns arguments table for the passed argument. /// </summary> /// <param name="argument">Argument containing information on current media item</param> public static Hashtable GetArgumentsTable(string argument) { Hashtable table = new Hashtable(); string[] argArr = argument.Split('|'); // Fill table for (int i = 0; i < argArr.Length; i = i + 2) { table[argArr[i].ToLowerCSafe()] = CMSDialogHelper.UnEscapeArgument(argArr[i + 1]); } return(table); }
/// <summary> /// Returns arguments table for the passed argument. /// </summary> /// <param name="argument">Argument containing information on current media item</param> public static Hashtable GetArgumentsTable(string argument) { Hashtable table = new Hashtable(); string[] argArr = argument.Split('|'); try { // Fill table for (int i = 0; i < argArr.Length; i = i + 2) { table[argArr[i].ToLowerCSafe()] = CMSDialogHelper.UnEscapeArgument(argArr[i + 1]); } } catch { throw new Exception("[Media view]: Error loading arguments table."); } return(table); }