Esempio n. 1
0
        public HookManagerTest()
        {
            InitializeComponent();
            ws = new Workspace(
                new RuntimeContext(
                    new List<IntPtr> { this.Handle })
                );

            mouseInterval.Maximum = 1000;
            mouseInterval.Minimum = 5;
            mouseInterval.SmallChange = 50;
            mouseInterval.TickFrequency = 50;
            mouseInterval.TickStyle = TickStyle.Both;

            mouseInterval.ValueChanged += new EventHandler(mouseInterval_ValueChanged);

            t = new Timer();
            t.Tick += new EventHandler(t_Tick);
            t.Interval = mouseInterval.Value;
            t.Enabled = true;
            t.Start();

            toplevelWindowTimer = new Timer();
            toplevelWindowTimer.Tick += new EventHandler(toplevelWindowTimer_Tick);
            toplevelWindowTimer.Interval = 5 * 1000;
            toplevelWindowTimer.Enabled = true;
            toplevelWindowTimer.Start();
        }
Esempio n. 2
0
        public WorkspacePanel()
        {
            InitializeComponent();

            InitalizeHelp();

            workspace = new Workspace(
                new RuntimeContext(
                    new List<IntPtr> { this.Handle })
                );

            systray.ContextMenuStrip = menu;

            //TODO: detect screen resolution changes in hopes of handling dock/undock events
            //TOOD: give the user a way to distinguish between layouts that are for different monitor configs
                //IE: multi monitor with huge amounts of desktop space or a laptop screen
                //    could potentially support auto scaling?

            //TODO: show help on first run.
            this.Hide();
            systray.Visible = true;
            systray.Icon = this.Icon;
        }