Beispiel #1
0
 public override void ParseArguments()
 {
     RowsPerPage    = Int32.MaxValue;
     ColumnsPerPage = Int32.MaxValue;
     if (!string.IsNullOrEmpty(ArgumentsString))
     {
         string[] parts = ArgumentsString.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
         if (parts.Length > 0)
         {
             int rows = 0;
             if (int.TryParse(parts[0], out rows))
             {
                 RowsPerPage = rows;
             }
         }
         if (parts.Length == 2)
         {
             int cols = 0;
             if (int.TryParse(parts[1], out cols))
             {
                 ColumnsPerPage = cols;
             }
         }
     }
 }