예제 #1
0
 /// <summary>
 /// Returns a GUI handle
 /// </summary>
 /// <returns></returns>
 public override System.Windows.Forms.UserControl GetControl()
 {
     ipmon = new IPMonitorDisplay(this) { Dock = System.Windows.Forms.DockStyle.Fill };
     // force a tick when the GUI is loaded
     timer_Tick(updateTimer, null);
     return ipmon;
 }
 /// <summary>
 /// Returns a GUI handle
 /// </summary>
 /// <returns></returns>
 public override System.Windows.Forms.UserControl GetControl()
 {
     ipmon = new IPMonitorDisplay(this)
     {
         Dock = System.Windows.Forms.DockStyle.Fill
     };
     // force a tick when the GUI is loaded
     timer_Tick(updateTimer, null);
     return(ipmon);
 }
예제 #3
0
 /// <summary>
 /// Returns a GUI handle
 /// </summary>
 /// <returns></returns>
 public override fireBwall.UI.DynamicUserControl GetUserInterface()
 {
     try
     {
         ipmon = new IPMonitorDisplay(this) { Dock = System.Windows.Forms.DockStyle.Fill };
         // force a tick when the GUI is loaded
         timer_Tick(updateTimer, null);
     }
     catch (Exception ex)
     {
         LogCenter.Instance.LogException(ex);
     }
     return ipmon;
 }
예제 #4
0
        /// <summary>
        /// Starts the module
        /// </summary>
        /// <returns></returns>
        public override ModuleError ModuleStart()
        {
            ModuleError moduleError = new ModuleError();
            ipmon = new IPMonitorDisplay(this) { Dock = System.Windows.Forms.DockStyle.Fill };

            // configure the update timer to refresh the caches every
            // 5 seconds
            updateTimer.Elapsed += new ElapsedEventHandler(timer_Tick);
            updateTimer.Interval = 5000;
            updateTimer.Enabled = true;
            updateTimer.Start();

            moduleError.errorType = ModuleErrorType.Success;
            return moduleError;
        }
예제 #5
0
 /// <summary>
 /// Returns a GUI handle
 /// </summary>
 /// <returns></returns>
 public override fireBwall.UI.DynamicUserControl GetUserInterface()
 {
     try
     {
         ipmon = new IPMonitorDisplay(this)
         {
             Dock = System.Windows.Forms.DockStyle.Fill
         };
         // force a tick when the GUI is loaded
         timer_Tick(updateTimer, null);
     }
     catch (Exception ex)
     {
         LogCenter.Instance.LogException(ex);
     }
     return(ipmon);
 }
        /// <summary>
        /// Starts the module
        /// </summary>
        /// <returns></returns>
        public override ModuleError ModuleStart()
        {
            ModuleError moduleError = new ModuleError();

            ipmon = new IPMonitorDisplay(this)
            {
                Dock = System.Windows.Forms.DockStyle.Fill
            };

            // configure the update timer to refresh the caches every
            // 5 seconds
            updateTimer.Elapsed += new ElapsedEventHandler(timer_Tick);
            updateTimer.Interval = 5000;
            updateTimer.Enabled  = true;
            updateTimer.Start();

            moduleError.errorType = ModuleErrorType.Success;
            return(moduleError);
        }
예제 #7
0
        /// <summary>
        /// Starts the module
        /// </summary>
        /// <returns></returns>
        public override bool ModuleStart()
        {
            try
            {
                ipmon = new IPMonitorDisplay(this) { Dock = System.Windows.Forms.DockStyle.Fill };

                // configure the update timer to refresh the caches every
                // 5 seconds
                updateTimer.Elapsed += new ElapsedEventHandler(timer_Tick);
                updateTimer.Interval = 5000;
                updateTimer.Enabled = true;
                updateTimer.Start();
            }
            catch (Exception e)
            {
                LogCenter.Instance.LogException(e);
                return false;
            }
            return true;
        }
예제 #8
0
        /// <summary>
        /// Starts the module
        /// </summary>
        /// <returns></returns>
        public override bool ModuleStart()
        {
            try
            {
                ipmon = new IPMonitorDisplay(this)
                {
                    Dock = System.Windows.Forms.DockStyle.Fill
                };

                // configure the update timer to refresh the caches every
                // 5 seconds
                updateTimer.Elapsed += new ElapsedEventHandler(timer_Tick);
                updateTimer.Interval = 5000;
                updateTimer.Enabled  = true;
                updateTimer.Start();
            }
            catch (Exception e)
            {
                LogCenter.Instance.LogException(e);
                return(false);
            }
            return(true);
        }