Пример #1
0
        public MainViewModel(Model model)
        {
            Model                = model;
            model.Updated       += Update;
            model.SourceUpdated += UpdateSource;
            OpenSettingsCommand  = new RelayCommand(_ => WindowManager.OpenSettings());
            SaveAsCommand        = new RelayCommand(_ => Bmp.SaveAsJpeg(WindowManager.SaveAs()), _ => Bmp != null);

            Locations = new ObservableCollection <Location>(Model.Locations);
        }