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();
        }