/// <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); }
/// <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; }
/// <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); }
/// <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; }
/// <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); }