Exemple #1
0
        void Edit()
        {
            var editcardialog = new EditCarItem()
            {
                DataContext = this
            };

            editcardialog.ShowDialog();

            ViewModel.Instance.Requery();
        }
Exemple #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();
        }