private async void EditAttribute_Click(object sender, RoutedEventArgs e) { Attribute attribute = Attributes.SelectedItem as Attribute; Entity entity = Entities.SelectedItem as Entity; EditAttributeContentDialog editAttributeContentDialog = new EditAttributeContentDialog(attribute, entity); var result = await editAttributeContentDialog.ShowAsync(); if (result == ContentDialogResult.Primary) { UpdateDictionaryData(); } }
private async void AddAttributeButton_Click(object sender, RoutedEventArgs e) { Entity entity = Entities.SelectedItem as Entity; if (entity != null) { ContentDialog dialog = new EditAttributeContentDialog(entity); var result = await dialog.ShowAsync(); if (result == ContentDialogResult.Primary) { UpdateDictionaryData(); } } }