Beispiel #1
0
        private void CloseButton_Click(object sender, RoutedEventArgs e)
        {
            var context = DataContext as ViewModels.EditDialogViewModel;

            context.EditableCollectionItem = new Data.Models.CollectionDataItem(context.OriginalCollectionItem);

            EditDialogCurrent.Hide();
        }
Beispiel #2
0
        private void ContentDialog_SecondaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
        {
            var context = DataContext as ViewModels.EditDialogViewModel;

            context.EditableCollectionItem = new Data.Models.CollectionDataItem(context.OriginalCollectionItem);

            EditDialogCurrent.Hide();
        }