public SelectInventoryItemBookBasis(IBookBasisParameter param,bool multiselect)
     : base(param)
 {
     MulitiSelectMode = multiselect;
 }
Esempio n. 2
0
 public BookBasis(IBookBasisParameter param)
     : base(param)
 {
 }
 private void initBookTiltes()
 {
     var files = Directory.GetFiles(bookdir,"BP_*.cs");
     ReadBookTitles = new string[files.Length];
     IsBookRead = new bool[files.Length];
     var types = new IBookBasisParameter[files.Length];
     StringBuilder stb = new StringBuilder();
     int idx = 0;
     foreach (string str in files) {
         var str2 = str.Replace(".cs", "");
         str2 = str2.Replace(bookdir, "");
         //Debug.logger.LogFormat(LogType.Log,"Str:{1} Type;{0}", Type.GetType(str2),str2);
         types[idx] = (Activator.CreateInstance(Type.GetType(str2)) as IBookBasisParameter);
         IsBookRead[idx] = false;
         stb.AppendLine(string.Format("Book[{0}]:{1} {2}",idx,str2,ReadBookTitles[idx]));
         idx++;
     }
     Array.Sort(types, (a, b) => a.ItemID - b.ItemID);
     ReadBookTitles = Array.ConvertAll(types, t => t.OriginalName);
     Debug.logger.Log(string.Format("BookTiltles[{0}]\n",files.Length),stb.ToString());
 }