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

            tGeometryNode.tb_gn_ver.Text = "0x" + Helper.HexString(this.version);

            tGeometryNode.tb_gn_uk1.Text = "0x" + Helper.HexString((ushort)this.unknown1);
            tGeometryNode.tb_gn_uk2.Text = "0x" + Helper.HexString((ushort)this.unknown2);
            tGeometryNode.tb_gn_uk3.Text = "0x" + Helper.HexString(this.unknown3);

            tGeometryNode.tb_gn_count.Text = Count.ToString();

            tGeometryNode.cb_gn_list.Items.Clear();

            foreach (IRcolBlock irb in this.data)
            {
                SimPe.CountedListItem.Add(tGeometryNode.cb_gn_list, irb);
            }
            if (tGeometryNode.cb_gn_list.Items.Count > 0)
            {
                tGeometryNode.cb_gn_list.SelectedIndex = 0;
            }
            else
            {
                tGeometryNode.BuildChildTabControl(null);
            }
        }
Esempio n. 2
0
 public override void Dispose()
 {
     if (this.tGeometryNode != null)
     {
         this.tGeometryNode.Dispose();
     }
     tGeometryNode = null;
 }