예제 #1
0
        public MainWindowViewModel()
        {
            KernelService.MainWindowViewModel = this;
            this._columnOwnerViewModel = new ColumnOwnerViewModel(this);
            this._notifierViewModel = new NotifierViewModel(this);
            this._notifyBlockViewModel = new NotifyBlockViewModel(this);
            // Input block dependents ColumnOwnerViewModel
            this._inputBlockViewModel = new InputBlockViewModel(this);

            this._userSelectionViewModel = new UserSelectionViewModel();
            this._userSelectionViewModel.Finished += () =>
            {
                this._isVisibleUserSelection = false;
                RaisePropertyChanged(() => IsVisibleUserSelection);
                RaisePropertyChanged(() => IsActivateMain);
            };
            ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) =>
            {
                RaisePropertyChanged(() => IsNotifierBarBottom);
                RaisePropertyChanged(() => NotifierBarColumn);
                RaisePropertyChanged(() => IsInputBlockBottom);
                RaisePropertyChanged(() => InputBlockColumn);
                RaisePropertyChanged(() => FontFamily);
                RaisePropertyChanged(() => FontSize);
            });
        }
예제 #2
0
 public ColumnViewModel(ColumnOwnerViewModel parent)
 {
     this.Parent = parent;
     ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) =>
     {
         RaisePropertyChanged(() => TabColumn);
     });
 }
예제 #3
0
 public ColumnViewModel(ColumnOwnerViewModel parent)
 {
     this.Parent = parent;
     ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) => RaisePropertyChanged(() => TabColumn));
 }