示例#1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        public void Shutdown(bool disposing)
        {
            if (mInsightConfigure != null)
            {
                mInsightConfigure.Dispose();
                mInsightConfigure = null;
            }

            if (cvsInSightDisplay1 != null)
            {
                if (cvsInSightDisplay1.Connected)
                {
                    cvsInSightDisplay1.Disconnect();
                }
                cvsInSightDisplay1.StatusInformationChanged -= new EventHandler(cvsInSightDisplay1_StatusInformationChanged);
                cvsInSightDisplay1.InSightChanged           -= new System.EventHandler(this.cvsInSightDisplay1_InSightChanged);
            }
            InSight = null;

            if (mMonitor != null)
            {
                mMonitor.HostsChanged -= new EventHandler(mMonitor_HostsChanged);
                mMonitor.Dispose();
            }

            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
示例#2
0
 /// <summary>
 /// Open Window to configure parameters of insights
 /// </summary>
 public void Configure()
 {
     if (mInsightConfigure == null)
     {
         mInsightConfigure = new InsightConfigure(this.cvsInSightDisplay1);
     }
     mInsightConfigure.UpdateParam();
     mInsightConfigure.Show();
 }
示例#3
0
        private void Initilize()
        {
            mMonitor = new CvsNetworkMonitor();
            mMonitor.PingInterval = 0;

            mMonitor.HostsChanged += new EventHandler(mMonitor_HostsChanged);
            mMonitor.Enabled       = true;

            cvsInSightDisplay1.InSightChanged           += new System.EventHandler(this.cvsInSightDisplay1_InSightChanged);
            cvsInSightDisplay1.StatusInformationChanged += new System.EventHandler(cvsInSightDisplay1_StatusInformationChanged);

            mInsightConfigure = new InsightConfigure(this.cvsInSightDisplay1);
            mInsightConfigure.Hide();
        }