/// <summary> /// Has the facade info changed /// </summary> /// <returns>True if facade has changed, false otherwise</returns> internal bool HasChanged() { MessageFacadeInfo newInfo = new MessageFacadeInfo(); if ( newInfo.SelectedIndex != SelectedIndex || newInfo.Visible != Visible || newInfo.Count != Count) { UpdateFacadeInfo(); return true; } return false; }
/// <summary> /// Has the facade info changed /// </summary> /// <returns>True if facade has changed, false otherwise</returns> internal bool HasChanged() { MessageFacadeInfo newInfo = new MessageFacadeInfo(); if ( newInfo.SelectedIndex != SelectedIndex || newInfo.Visible != Visible || newInfo.Count != Count) { UpdateFacadeInfo(); return(true); } return(false); }
/// <summary> /// Constructor. /// Initialise and setup the socket server. /// </summary> public SocketServer(UInt16 port) { this.communication = new Communication(); this.welcomeMessage = new MessageWelcome(); welcomeMessage.AuthMethod = AllowedAuth; this.statusMessage = new MessageStatus(); this.volumeMessage = new MessageVolume(); this.nowPlayingMessage = new MessageNowPlaying(); this.nowPlayingMessageUpdate = new MessageNowPlayingUpdate(); this.nowPlayingPropertiesUpdate = new MessagePropertyChanged(); this.currentFacadeInfoMessage = new MessageFacadeInfo(); this.port = port; initSocket(); }