private void miResendCommand_Click(object sender, RoutedEventArgs e) { QueueItem itm = ((MenuItem)sender).Tag as QueueItem; ISendCommand mgr = _sys.Manager as ISendCommand; if (itm.Messages.Length == 1) { object cmd = mgr.DeserializeCommand(GetQueueItemContent(itm), Type.GetType(itm.Messages[0].AssemblyQualifiedName)); if (cmd != null) { var dlg = new SendCommandWindow(_sys); dlg.Show(); dlg.SetCommand(cmd); } } else { MessageBox.Show("ServiceBus MQ Manager Don't support messages with multiple commands yet.", "Resend Command", MessageBoxButton.OK, MessageBoxImage.Asterisk); } }
private void miResendCommand_Click(object sender, RoutedEventArgs e) { QueueItem itm = ( (MenuItem)sender ).Tag as QueueItem; ISendCommand mgr = _sys.Manager as ISendCommand; if( itm.Messages.Length == 1 ) { object cmd = mgr.DeserializeCommand(GetQueueItemContent(itm), Type.GetType(itm.Messages[0].AssemblyQualifiedName)); if( cmd != null ) { var dlg = new SendCommandWindow(_sys); dlg.Show(); dlg.SetCommand(cmd); } } else MessageBox.Show("ServiceBus MQ Manager Don't support messages with multiple commands yet.", "Resend Command", MessageBoxButton.OK, MessageBoxImage.Asterisk); }
private void btnSendCommand_Click(object sender, RoutedEventArgs e) { var dlg = new SendCommandWindow(_sys); dlg.Show(); }