コード例 #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
ファイル: ColumnViewModel.cs プロジェクト: c0a5tar/Mystique
 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));
 }