/// <summary> /// Refreshes the ui. /// </summary> private void Refresh() { PropertyChanged(this, new PropertyChangedEventArgs("StatusMessage")); PropertyChanged(this, new PropertyChangedEventArgs("IsConnected")); PropertyChanged(this, new PropertyChangedEventArgs("ConnectButtonLabel")); PropertyChanged(this, new PropertyChangedEventArgs("ConnectButtonColour")); PropertyChanged(this, new PropertyChangedEventArgs("StatusBoxColour")); OnConnect.RaiseCanExecuteChanged(); }