protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); clsCategory lcCategory = (clsCategory)e.Parameter; _Category = await ServiceClient.GetCategoryAsync(lcCategory.ID); updateDisplay(); clsMQTTClient.Instance.Subscribe(this); }
private async void refreshFormFromDB() { _Category = await ServiceClient.GetCategoryAsync(_Category.ID); updateDisplay(); }