Example #1
0
 public void SetFormatItem(FormatItemType type, params string[] args)
 {
     _itemType = type;
     if (args.Length > 0)
     {
         if (args[0].Trim().Length > 0)
         {
             if (type == FormatItemType.String)
             {
                 _formatStringValue = args[0];
             }
             else
             {
                 _formatParser = args[0];
                 for (int i = 1; i < args.Length; i++)
                 {
                     Args.Add(args[i]);
                 }
             }
         }
     }
 }
Example #2
0
 public FormatItem(FormatItemType type, params string[] args)
 {
     SetFormatItem(type, args);
 }
Example #3
0
 public FormatItem()
 {
     _itemType          = FormatItemType.String;
     _formatStringValue = "";
 }