Beispiel #1
0
 public bool SignalExternalCommandLineArgs(IList <string> args)
 {
     if (this.MainWindow.WindowState == WindowState.Minimized)
     {
         WindowExtensions.Unminimize(this.MainWindow);
     }
     else
     {
         WindowExtensions.ShowAndActivate(this.MainWindow);
     }
     return(this.ProcessCommandLineArgs(this.MainWindow as SimpleMusicPlayer.Views.MainWindow, args));
 }
Beispiel #2
0
 /// <summary>
 /// 已经有实例运行时候,新打开的操作
 /// </summary>
 /// <param name="args"></param>
 /// <returns></returns>
 public bool SignalExternalCommandLineArgs(IList <string> args)
 {
     if (this.MainWindow.WindowState == WindowState.Minimized)
     {
         WindowExtensions.Unminimize(this.MainWindow);       //最小化变成最大化
     }
     else
     {
         WindowExtensions.ShowAndActivate(this.MainWindow);  //后台时候激活窗口
     }
     return(true);
 }