Inheritance: FirstFloor.ModernUI.Presentation.NotifyPropertyChanged, IDisposable, IComparer, IUserPresetable
 public SetupRaceGridDialog(RaceGridViewModel model) {
     Model = model;
     DataContext = model;
     InitializeComponent();
     
     // TODO: Buttons = new[] { OkButton, CancelButton }; 
     Buttons = new[] { CloseButton }; 
 }
Example #2
0
            public ViewModel(bool initialize = true) {
                // ReSharper disable once VirtualMemberCallInConstructor
                RaceGridViewModel = new RaceGridViewModel(IgnoreStartingPosition);
                RaceGridViewModel.Changed += RaceGridViewModel_Changed;

                // ReSharper disable once VirtualMemberCallInContructor
                InitializeSaveable();

                if (initialize) {
                    Saveable.LoadOrReset();
                } else {
                    Saveable.Reset();
                }
            }