Пример #1
0
        public dlgSelectTV2(CASTreeViewStep aTV)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _cmdCancel.TabStop = false;

            mPCLoadingItem = PlaceCode.Empty;
            mSelectedNode = null;
            pIsLoadByObj = true;

            mTV = aTV;
            mTV.Dock = DockStyle.Fill;
            //mTV.AddMenuCommand(eCommand.Choice);
            mTV.Parent = this;
            //this.Controls.Add(mTV);
            mTV.BringToFront();

            _cmdCancel.Click += new EventHandler (DoCommandCancel);
            this.Load += new EventHandler (OnDlgLoad);
            this.Closed += new EventHandler (OnDlgClosed);
        }
Пример #2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 protected override void Dispose( bool disposing )
 {
     if( disposing )
     {
         mSelectedNode	= null;
         mTV = null;
         if(components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose( disposing );
 }