Exemplo n.º 1
0
 private void FailedEventHandler(object sender, FailedEventArgs message)
 {
     MessageBox.Show("Your request failed. " + message.Message.Last(), "Failure!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     if (message.Message.First().StartsWith("CREATE") || message.Message.First().StartsWith("JOIN"))
     {
         DeregisterHandlers();
         _spreadsheet = null;
     }
 }
 private void FailedEventHandler(object sender, FailedEventArgs message)
 {
     MessageBox.Show("Your request failed. " + message.Message.Last(), "Failure!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     if (message.Message.First().StartsWith("CREATE") || message.Message.First().StartsWith("JOIN"))
     {
         DeregisterHandlers();
         _spreadsheet = null;
     }
 }