示例#1
0
 public void btnUpdateStatistics_Click(System.Object sender, System.EventArgs e)
 {
     try
     {
         IEnumerator enumm = this._handlerContainersTable.GetEnumerator();
         CF_DPE_PublicationSubscriptionHandler hnd = null;
         while (enumm.MoveNext())
         {
             hnd = (CF_DPE_PublicationSubscriptionHandler)(((DictionaryEntry)enumm.Current).Value);
             hnd.UpdateStatistics();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#2
0
        public void AddPublicationConnectionHandler(string publicationNAme)
        {
            if (!this._handlerContainersTable.ContainsKey(publicationNAme))
            {
                System.Windows.Forms.TabPage TabPage = new System.Windows.Forms.TabPage(publicationNAme);

                CF_DPE_PublicationSubscriptionHandler handler = new CF_DPE_PublicationSubscriptionHandler(this._client, publicationNAme);
                handler.Dock = System.Windows.Forms.DockStyle.Fill;
                TabPage.Controls.Add(handler);
                TabPage_Add(this.tabPublicationHandlers, TabPage);

                this._handlerContainersTable.Add(publicationNAme, handler);
                this._handlersTabPagesTable.Add(publicationNAme, TabPage);

                try
                {
                    handler.UpdateStatistics();
                    this.SetPublicationTab(publicationNAme);
                }
                catch (Exception)
                {
                }
            }
        }