Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.IO;
- using System.Linq;
- using System.Runtime.InteropServices.WindowsRuntime;
- using System.Threading.Tasks;
- using Windows.ApplicationModel.Core;
- using Windows.Foundation;
- using Windows.Foundation.Collections;
- using Windows.UI.Core;
- using Windows.UI.ViewManagement;
- using Windows.UI.WindowManagement;
- using Windows.UI.Xaml;
- using Windows.UI.Xaml.Controls;
- using Windows.UI.Xaml.Controls.Primitives;
- using Windows.UI.Xaml.Data;
- using Windows.UI.Xaml.Hosting;
- using Windows.UI.Xaml.Input;
- using Windows.UI.Xaml.Media;
- using Windows.UI.Xaml.Media.Imaging;
- using Windows.UI.Xaml.Navigation;
- //Szablon elementu Pusta strona jest udokumentowany na stronie https://go.microsoft.com/fwlink/?LinkId=234238
- namespace Nazwiska
- {
- /// <summary>
- /// Pusta strona, która może być używana samodzielnie lub do której można nawigować wewnątrz ramki.
- /// </summary>
- public sealed partial class Form2 : Page
- {
- public Form2()
- {
- this.InitializeComponent();
- }
- Osoba osoba;
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- osoba = (Osoba)e.Parameter;
- base.OnNavigatedTo(e);
- ImieTxt.Text = osoba.Imie;
- NazwiskoTxt.Text = osoba.Nazwisko;
- AdresTxt.Text = osoba.Adres;
- Obrazek.Source = new BitmapImage(new Uri(osoba.Image));
- }
- private void dodajButton_Click(object sender, RoutedEventArgs e)
- {
- }
- private void edytujButton_Click(object sender, RoutedEventArgs e)
- {
- osoba.Imie = ImieTxt.Text;
- osoba.Nazwisko = NazwiskoTxt.Text;
- osoba.Adres = AdresTxt.Text;
- }
- private void powrocButton_Click(object sender, RoutedEventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement