public ConnectionViewModel()
 {
     Tables                = new ObservableCollection <TableViewModel>();
     RemoveCommand         = new DelegateCommand <TableViewModel>(x => Remove(x));
     ReloadMessagesCommand = new DelegateCommand <TableViewModel>(ReloadMessages);
     PurgeCommand          = new DelegateCommand <TableViewModel>(PurgeMessages);
     _rebusService         = new RebusService();
 }
Esempio n. 2
0
 public TableViewModel(string name, int messageCount, string connectionString)
 {
     _connectionString = connectionString;
     Name                       = name;
     MessageCount               = messageCount;
     Messages                   = new ObservableCollection <MessageViewModel>();
     _rebusService              = new RebusService();
     DeleteMessageCommand       = new DelegateCommand <MessageViewModel>(DeleteMessage);
     ReturnToSourceQueueCommand = new DelegateCommand <MessageViewModel>(ReturnToSourceQueue);
 }