Exemplo n.º 1
0
        public void Partner()
        {
            var windowmanager = new WindowManager();
            var window        = new AddAndModifyPartnerViewModel();
            var result        = windowmanager.ShowDialog(window, null, null);

            if (result == true)
            {
                MessageBox.Show("Partner hozzáadva");
            }
        }
Exemplo n.º 2
0
        public void AddPartner()
        {
            var windowmanager = new WindowManager();
            var window        = new AddAndModifyPartnerViewModel();
            var result        = windowmanager.ShowDialog(window, null, null);

            if (result == true)
            {
                PartnerHelper partnerhelper = new PartnerHelper();
                Partnerek          = partnerhelper.GetPartners();
                SearchablePartners = new BindableCollection <Partner>(Partnerek);
                MessageBox.Show("Partner hozzáadva");
            }
        }