Exemplo n.º 1
0
        public void Klient_Edytuj_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            Klient klient = getSenderParent(sender) as Klient;

            DaneKlienta edit = new DaneKlienta(klient);

            edit.ShowDialog();
        }
Exemplo n.º 2
0
        public static void DodajKlienta(object sender, RoutedEventArgs e)
        {
            var    parent       = getSenderParent(sender);
            string kluczRodzica = "";

            if (parent is Element)
            {
                kluczRodzica = (parent as Element).Klucz;
            }

            Klient klient = new Klient("", kluczRodzica, "", new List <EmailModel>(), new List <TelefonModel>(), new List <DaneLogowaniaModel>());

            DaneKlienta newClient = new DaneKlienta(klient, sender);

            newClient.ShowDialog();
        }