コード例 #1
0
 /**
  * プレーヤーを表示
  */
 private void ShowPlayer()
 {
     if (null == Player)
     {
         Player = DxxPlayer.ShowPlayer(this);
     }
 }
コード例 #2
0
 public void PlayerClosed(DxxPlayer player)
 {
     if (Player == player)
     {
         Player = null;
     }
 }
コード例 #3
0
        private void InitializeCommands()
        {
            ClearStatusCommand.Subscribe(() => {
                StatusList.Value.Clear();
            });

            /**
             * ターゲットリスト内のアイテムをすべてDL開始
             */
            DownloadByTargetList.Subscribe(() => {
                DxxDriverManager.Instance.Download(TargetList.Value);
            });

            CancellAllCommand.Subscribe(() => {
                DxxActivityWatcher.Instance.CancelAll();
                DxxDownloader.Instance.CancelAll();
            });
            ClearDownloadingListCommand.Subscribe(() => {
                DownloadingList.Value.Clear();
            });
            ClearTargetListCommand.Subscribe(() => {
                TargetList.Value.Clear();
            });
            ShowPlayerCommand.Subscribe(() => {
                if (Player == null)
                {
                    Player = DxxPlayer.ShowPlayer(this);
                }
            });
            ShowDBViewerCommand.Subscribe(() => {
                DxxDBViewerWindow.ShowWindow(OwnerWindow);
            });
        }