예제 #1
0
        /// <summary>
        /// You can use this to setop the Controls on a TabPage befor it is dispplayed
        /// </summary>
        protected override void InitTabPage()
        {
            if (tShapeRefNode == null)
            {
                tShapeRefNode = new SimPe.Plugin.TabPage.ShapeRefNode();
            }

            tShapeRefNode.lb_srn_a.Items.Clear();
            for (int i = 0; i < this.itemsa.Length; i++)
            {
                tShapeRefNode.lb_srn_a.Items.Add(itemsa[i]);
            }

            tShapeRefNode.lb_srn_b.Items.Clear();
            for (int i = 0; i < this.itemsb.Length; i++)
            {
                tShapeRefNode.lb_srn_b.Items.Add(itemsb[i]);
            }

            tShapeRefNode.tb_srn_uk1.Text = "0x" + Helper.HexString((ushort)this.unknown1);
            tShapeRefNode.tb_srn_uk2.Text = "0x" + Helper.HexString((uint)this.unknown2);
            tShapeRefNode.tb_srn_uk3.Text = "0x" + Helper.HexString((uint)this.unknown3);
            tShapeRefNode.tb_srn_uk4.Text = "0x" + Helper.HexString(this.unknown4);
            tShapeRefNode.tb_srn_uk5.Text = "0x" + Helper.HexString((uint)this.unknown5);
            tShapeRefNode.tb_srn_uk6.Text = "0x" + Helper.HexString((uint)this.unknown6);

            tShapeRefNode.tb_srn_kind.Text = this.name;
            tShapeRefNode.tb_srn_data.Text = Helper.BytesToHexList(this.data);

            tShapeRefNode.tb_srn_ver.Text = "0x" + Helper.HexString(this.version);
        }
예제 #2
0
 public override void Dispose()
 {
     if (this.tShapeRefNode != null)
     {
         this.tShapeRefNode.Dispose();
     }
     tShapeRefNode = null;
 }