/// <summary> /// Constructor that initializes the commands and the local reference to the peer /// </summary> /// <param name="peer">Peer that will be used to get information from the network</param> public SearchListModel(Peer peer = null) { this.peer = peer; Query = ""; Search = new AlwaysExecuteCommand(searchFn); RaiseStartStream = new AlwaysExecuteCommand(startStream); }
/// <summary> /// Constructor that initializes the commands and the local reference to the peer /// </summary> /// <param name="peer">Peer that will be used to get information from the network</param> public SearchListModel(Peer peer=null) { this.peer = peer; Query = ""; Search = new AlwaysExecuteCommand(searchFn); RaiseStartStream = new AlwaysExecuteCommand(startStream); }
/// <summary> /// Constructor that initializes all commands and the reference to the Peer. /// </summary> /// <param name="p"></param> public AudioPlayerModel(Peer p = null) { //player.Done += new PlayerEx.DoneEventHandler(player_Done); //player.SetVolume(200, 200); player.PlaybackStopped += new EventHandler(playback_stopped); this.peer = p; Play = new AlwaysExecuteCommand(play); Pause = new AlwaysExecuteCommand(pause); Stop = new AlwaysExecuteCommand(stop); Close = new AlwaysExecuteCommand(close); MaxVolume = 1.0F; Volume = 0.4F; }
/// <summary> /// Constructor that initializes all commands and the reference to the Peer. /// </summary> /// <param name="p"></param> public AudioPlayerModel(Peer p = null) { //player.Done += new PlayerEx.DoneEventHandler(player_Done); //player.SetVolume(200, 200); player.PlaybackStopped += new EventHandler(playback_stopped); this.peer = p; Play = new AlwaysExecuteCommand(play); Pause = new AlwaysExecuteCommand(pause); Stop = new AlwaysExecuteCommand(stop); Close = new AlwaysExecuteCommand(close); MaxVolume = 1.0F; Volume = 0.4F; }
/// <summary> /// Constructor that initializes the commands and the local reference to the peer /// </summary> /// <param name="p">Peer that will be used to get information</param> public LocalStoreModel(Peer p = null) { peer = p; RefreshList = new AlwaysExecuteCommand(refreshList); refreshList(); }
/// <summary> /// Constructor that initializes the commands and the local reference to the peer /// </summary> /// <param name="p">Peer that will be used to get information</param> public LocalStoreModel(Peer p = null) { peer = p; RefreshList = new AlwaysExecuteCommand(refreshList); refreshList(); }