Пример #1
0
        private void EditGiveaway(object sender, RoutedEventArgs e)
        {
            NewGiveaway GiveawayPage = new NewGiveaway(((FrameworkElement)sender).DataContext as Giveaway);

            MainWindow.NavigationContainer.Navigate(GiveawayPage);
        }
Пример #2
0
        private void CreateGiveaway(object sender, RoutedEventArgs e)
        {
            NewGiveaway GiveawayPage = new NewGiveaway(new Giveaway());

            MainWindow.NavigationContainer.Navigate(GiveawayPage);
        }