private void AppM_OnProcessStarted(Application app) { if (!app.IsSystemApp) { AppTaskbar.AddTaskBarItem(app); app.AppWindowLogic.WindowState = Default; ShowWindow(app); } app.AppWindowLogic.OnWindowAction += AppWindowLogic_OnWindowAction; }
private void _appM_OnProcessResume(Application app) { if (app.IsSystemApp && app.AppWindowLogic.WindowState == None) { AppTaskbar.AddTaskBarItem(app); app.AppWindowLogic.WindowState = Default; } app.AppWindowLogic.WindowState &= ~Minimize; //Display App Refernece Window ShowWindow(app); }