Пример #1
0
        internal ServerTree(ImageList oImageList, string strCacheDir)
        {
            m_strCacheDir = strCacheDir;
             m_oServerList = new ServerList(m_strCacheDir);
             m_oCacheManager = new CatalogCacheManager(this, m_strCacheDir);
              	m_strSecureToken = string.Empty;

             InitializeComponent();

             this.ShowLines = true;
             this.ShowRootLines = false;
             this.ShowNodeToolTips = true;
             this.ShowPlusMinus = false;
             this.HideSelection = false;
             this.Scrollable = true;
             base.ImageList = oImageList;
             this.ImageIndex = this.SelectedImageIndex = Dapple.MainForm.ImageListIndex("folder");
             //this.NodeMouseClick += new TreeNodeMouseClickEventHandler(this.OnNodeMouseClick);
             this.AfterSelect += new TreeViewEventHandler(this.OnAfterSelect);
        }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            // First gracefully
             EnqueueRequest(AsyncRequestType.Stop);
             EnqueueRequest(AsyncRequestType.Stop);

             try
             {
            // Force it in Dapple
            m_oAsyncThread1.Abort();
            m_oAsyncThread2.Abort();
             }
             catch
             {
             }

             if (disposing)
             {
            if (m_oCacheManager != null)
               m_oCacheManager.Dispose();
            m_oCacheManager = null;
             }
             base.Dispose(disposing);
        }