private async void ShowError(LightChangeStateError response)
 {
     await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
         async () =>
         {
             var dialog = new Windows.UI.Popups.MessageDialog("Error");
             await dialog.ShowAsync();
         }
     );
 }
 private async Task InformAboutErrorOccuredWhileChangingState(LightChangeStateError error)
 {
     try
     {
         if (HubConnection.State == ConnectionState.Connected)
         {
             await HubProxy.Invoke(EHubMethod.LightInformAboutErrorOccuredWhileChangingState.GetServerName(), error);
         }
     }
     catch (Exception ex)
     {
         //TODO            
     }
 }
 private void ShowLightInformationReceivedFromServer(LightChangeStateError error)
 {
     Messenger.Default.Send(new NotificationMessage<LightChangeStateError>(error, string.Empty));
 }