Пример #1
0
 protected override Task OnInitializedAsync()
 {
     NatsService.MessageAdded += OnMessageAdded;
     MessageGrid.SetData(NatsService.Messages);
     MessageGrid.SelectedItemChanged += OnSelectedItemChanged;
     MessageGrid.ItemClicked         += OnItemClicked;
     return(Task.CompletedTask);
 }
Пример #2
0
 protected override Task OnInitializedAsync()
 {
     NatsService.MessageSaved += OnMessageSaved;
     MessageGrid.SetData(NatsService.Configuration.SavedMessages);
     MessageGrid.SelectedItemChanged += OnSelectedItemChanged;
     MessageGrid.ItemClicked         += OnItemClicked;
     UrlGrid.SetData(NatsService.Connections);
     UrlGrid.CheckAll();
     return(Task.CompletedTask);
 }