private void CreateProcess(DesktopApp App)
        {
            var AppTask = new TaskbarApp
            {
                icon   = App.icon,
                active = false,
                Dock   = DockStyle.Left,
                Name   = App.Filename
            };

            ActiveTaskPanel.Controls.Add(AppTask);
            AppTask.OnClick += ClickedTaskbarApp;
            var process = new Process();

            process.StartInfo.FileName         = App.Executable.FullName;
            process.StartInfo.WorkingDirectory = App.Executable.DirectoryName;
            process.Start();
            AppTask.process = process;
            Tasks.Add(AppTask);

            startMenu.Tasks = Tasks;
        }
Exemple #2
0
 public MainWindow()
 {
     InitializeComponent();
     tapp    = new TaskbarApp(this);
     Loaded += MainWindow_Loaded;
 }