Inheritance: INotifyPropertyChanged
Esempio n. 1
0
        public static CarObject Show([CanBeNull] CarObject car, string defaultFilter)
        {
            var dialog = new SelectCarDialog(car ?? CarsManager.Instance.GetDefault(), defaultFilter);

            dialog.ShowDialog();
            return(dialog.IsResultOk ? dialog.SelectedCar : null);
        }
Esempio n. 2
0
        public static CarObject Show(CarObject car = null)
        {
            var dialog = new SelectCarDialog(car ?? CarsManager.Instance.GetDefault());

            dialog.ShowDialog();
            return(dialog.IsResultOk ? dialog.SelectedCar : null);
        }
Esempio n. 3
0
        public static CarObject Show([CanBeNull] CarObject car, [CanBeNull] ref CarSkinObject carSkin)
        {
            var dialog = new SelectCarDialog(car ?? CarsManager.Instance.GetDefault())
            {
                SelectedSkin = car?.SkinsActualList.Contains(carSkin) == true ? carSkin : car?.SelectedSkin
            };

            dialog.ShowDialog();

            if (dialog.IsResultOk)
            {
                carSkin = dialog.SelectedSkin;
                return(dialog.SelectedCar);
            }

            return(null);
        }
Esempio n. 4
0
 public static CarObject Show(CarObject car = null) {
     var dialog = new SelectCarDialog(car ?? CarsManager.Instance.GetDefault());
     dialog.ShowDialog();
     return dialog.IsResultOk ? dialog.SelectedCar : null;
 }