Exemplo n.º 1
0
        /// <summary>
        /// Init the Ressource Cres
        /// </summary>
        protected override void InitResourceTabPage()
        {
            if (tResourceNode == null)
            {
                tResourceNode = new SimPe.Plugin.TabPage.ResourceNode();
            }
            if (tCres == null)
            {
                tCres = new SimPe.Plugin.TabPage.Cres();
            }

            this.tCres.cres_tv.Nodes.Clear();
            tCres.tbfjoint.Text = "";
            AddChildNode(this.tCres.cres_tv.Nodes, 0, this);
            this.tCres.cres_tv.ExpandAll();
        }
Exemplo n.º 2
0
 public override void Dispose()
 {
     if (this.tResourceNode != null)
     {
         this.tResourceNode.Dispose();
     }
     tResourceNode = null;
     if (tCres != null)
     {
         tCres.Dispose();
     }
     tCres = null;
     sgres = null;
     ogn   = null;
     ctn   = null;
     items = new ResourceNodeItem[0];
 }