Exemplo n.º 1
0
 public T4ItemController(T4EntryController t4entrycontroller,T4Item t4item)
 {
     this.t4entrycontroller = t4entrycontroller;
     this.t4item = t4item;
     Node.Text = "Item";
     Node.ImageKey = "t4item";
     Node.SelectedImageKey = "t4item";
 }
Exemplo n.º 2
0
 public override Entry Load(byte[][] items,int eid)
 {
     if (items == null)
         throw new ArgumentNullException("items");
     T4Item[] t4items = new T4Item [items.Length];
     for (int i = 0;i < items.Length;i++)
     {
         t4items[i] = T4Item.Load(items[i]);
         if (t4items[i].Unknown1 != ((i == 0 || i == items.Length - 1) ? 0 : 1))
         {
             ErrorManager.SignalIgnorableError("T4Entry: Item unknown field is wrong");
         }
     }
     return new T4Entry(t4items,eid);
 }
Exemplo n.º 3
0
 public override Entry Load(byte[][] items, int eid)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     T4Item[] t4items = new T4Item [items.Length];
     for (int i = 0; i < items.Length; i++)
     {
         t4items[i] = T4Item.Load(items[i]);
         if (t4items[i].Unknown1 != ((i == 0 || i == items.Length - 1) ? 0 : 1))
         {
             ErrorManager.SignalIgnorableError("T4Entry: Item unknown field is wrong");
         }
     }
     return(new T4Entry(t4items, eid));
 }