Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        private void btnSendCommand_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new SendCommandWindow(_sys);

              dlg.Show();
        }
Exemplo n.º 4
0
        private void btnSendCommand_Click(object sender, RoutedEventArgs e)
        {
            var dlg = new SendCommandWindow(_sys);

            dlg.Show();
        }