Beispiel #1
0
 /// <summary>
 /// 删除指定子项
 /// </summary>
 /// <param name="ucBook">书本</param>
 public void Items_Remove(UcBook ucBook)
 {
     try
     {
         //删除子项
         this.bookList.Remove(ucBook);
         //刷新
         this.ReFlush();
     }
     catch (Exception ex)
     {
         MethodLb.CreateLog(this.GetType().FullName, "Items_Remove", ex.ToString(), ucBook);
     }
     finally
     {
     }
 }
Beispiel #2
0
 /// <summary>
 /// 添加一本书
 /// </summary>
 /// <param name="book">书本的实例</param>
 public void Items_Add(UcBook ucBook)
 {
     try
     {
         //给书本集合添加书本
         this.bookList.Add(ucBook);
         //书本阴影
         ucBook.Effect = new DropShadowEffect()
         {
             Direction = 320, BlurRadius = 16
         };
         //刷新
         this.ReFlush();
     }
     catch (Exception ex)
     {
         MethodLb.CreateLog(this.GetType().FullName, "Items_Add", ex.ToString(), ucBook);
     }
     finally
     {
     }
 }