コード例 #1
0
ファイル: SettingsViewModel.cs プロジェクト: 4ux-nbIx/gemini
        public SettingsViewModel()
        {
            CancelCommand = new RelayCommand(o => TryClose(false));
            OkCommand = new RelayCommand(SaveChanges);

            DisplayName = "Options";
        }
コード例 #2
0
        public SettingsViewModel()
        {
            CancelCommand = new RelayCommand(o=> DiscardChanges(o, true));
            OkCommand = new RelayCommand(o => SaveChanges(o, true));

            DisplayName = "Options";
        }
コード例 #3
0
ファイル: SettingsViewModel.cs プロジェクト: tgjones/gemini
        public SettingsViewModel()
        {
            CancelCommand = new RelayCommand(o => TryClose(false));
            OkCommand = new RelayCommand(SaveChanges);

            DisplayName = Resources.SettingsDisplayName;
        }
コード例 #4
0
        public UnknownActivityNotificationPopupViewModel(
            IActivitiesRepository activitiesRepository,
            IActivityRecordsRepository activityRecordsRepository)
        {
            _activitiesRepository = activitiesRepository;
            _activityRecordsRepository = activityRecordsRepository;

            _activityRecords = new ObservableCollection<ActivityRecord>();

            OkCommand = new RelayCommand(UpdateActivityRecord, CanUpdateActivityRecord);
        }