/** * プレーヤーを表示 */ private void ShowPlayer() { if (null == Player) { Player = DxxPlayer.ShowPlayer(this); } }
public void PlayerClosed(DxxPlayer player) { if (Player == player) { Player = null; } }
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); }); }