public AutoHideMonitor(SecondaryTaskbar mainForm) { _mainForm = mainForm; _timer = new Timer(); _timer.Interval = Math.Max(1, TaskbarPropertiesManager.Instance.Properties.AutoHideDelay); _timer.Tick += new EventHandler(_timer_Tick); }
public ToolTipManager(SecondaryTaskbar form) { _mainForm = form; ToolTipWindow = new ToolTipWindow(); ToolTipWindow.OnActivate += new EventHandler <TooltipEventArgs>(toolTipWindow_OnActivate); ToolTipWindow.OnClose += new EventHandler <TooltipEventArgs>(toolTipWindow_OnClose); ToolTipWindow.OnCustomEnter += new EventHandler <TooltipEventArgs>(toolTipWindow_OnMouseEnter); ToolTipWindow.OnCustomLeave += new EventHandler <TooltipEventArgs>(toolTipWindow_OnMouseLeave); }
internal static void Start() { _ruleManager = new RuleManager(TaskbarPropertiesManager.Instance.Properties.Rules, WindowManager.Instance); _ruleManager.Init(); ProcessMonitor.Instance.OnFocus += new WindowActionDelegate(processLogic_OnFocus); ProcessMonitor.Instance.OnWindowMoved += new WindowActionDelegate(processLogic_OnWindowMoved); ProcessMonitor.Instance.OnWindowDestroyed += new WindowActionDelegate(processLogic_OnWindowDestroyed); foreach (var screen in Screen.AllScreens.Where(s => !s.Primary)) { var tb = new SecondaryTaskbar(screen); _taskbars.Add(tb); tb.Show(); } }
public BorderedTransparentPanel(SecondaryTaskbar mainForm) { _mainForm = mainForm; BackColor = Color.FromKnownColor(KnownColor.ButtonFace); }