Пример #1
0
        void edit_person(object param)
        {
            ((App)App.Current).all_data.stat_it(0, ((App)App.Current).the_person.Id, "button add/edit_person");
            AddEditPersons_ViewModel addedvm = new AddEditPersons_ViewModel();

            addedvm.ShowDialog();
            Refresh(null);
        }
Пример #2
0
        void _info(object param)
        {
            ((App)App.Current).all_data.stat_it(agent.Boss, ((App)App.Current).the_person.Id, "editing person from agent");
            AddEditPersons_ViewModel aepvm = new AddEditPersons_ViewModel();

            foreach (var p in person)
            {
                if (p.Id == agent.Boss)
                {
                    aepvm.person = p as Model.Person;
                }
            }
            aepvm.ShowDialog();
        }