예제 #1
0
 private void AddDataPieces(string path)
 {
     DataPieces.Add(new DataPiece
     {
         image = Create(path),
         name  = Path.GetFileName(path),
         fork  = DataPiece.Fork.Bitmap,
         path  = path,
         page  = new ReactiveProperty <string>((DataPieces.Count() + 1).ToString()
                                               .PadLeft(DataPieces.Count().ToString().Length, '0'))
     });
 }
예제 #2
0
 private void AddDataPieces(Dictionary <string, byte[]> dic)
 {
     foreach (var key in dic.Keys)
     {
         DataPieces.Add(new DataPiece
         {
             image    = Create(dic[key]),
             name     = Path.GetFileName(key),
             fork     = DataPiece.Fork.Zip,
             byteData = dic[key],
             page     = new ReactiveProperty <string>((DataPieces.Count() + 1).ToString()
                                                      .PadLeft(DataPieces.Count().ToString().Length, '0'))
         });
     }
 }