コード例 #1
0
ファイル: Taskbar.cs プロジェクト: Tecnology73/ModernDesktop
        private void picStartButton_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                return;
            }

            StartMenu.Show();
        }
コード例 #2
0
ファイル: Taskbar.cs プロジェクト: Tecnology73/ModernDesktop
        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);
        }