Exemplo n.º 1
0
        void Edit()
        {
            var editcardialog = new EditCarItem()
            {
                DataContext = this
            };

            editcardialog.ShowDialog();

            ViewModel.Instance.Requery();
        }
Exemplo n.º 2
0
        void AddCar()
        {
            var car = new Car();

            var editCarDilaog = new EditCarItem()
            {
                DataContext = car
            };

            editCarDilaog.ShowDialog();

            // Let's just requery for now, as there are so many possibilities else.
            Requery();
        }