Пример #1
0
        private void picStartButton_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }

            StartMenu.Show();
        }
Пример #2
0
        public Taskbar()
        {
            InitializeComponent();

            MinimumSize = MaximumSize = Size = new Size(Screen.PrimaryScreen.Bounds.Width, 40);
            Location    = new Point(Screen.PrimaryScreen.Bounds.Left, Screen.PrimaryScreen.Bounds.Height - Height);

            this.SetTopMost();

            StartMenu          = new StartMenu();
            StartMenu.Location = new Point(Location.X, Location.Y - StartMenu.Height);

            TimeKeeper         = new BackgroundWorker();
            TimeKeeper.DoWork += TimeKeeper_DoWork;
            TimeKeeper.RunWorkerAsync();

            applicationWatcher1.ApplicationLaunched += (se, ev) =>
            {
                //StartMenu.ProgramLaunched(((ProcessInfo)se).Location);
            };
            applicationWatcher1.Run(this);
        }