Example #1
0
 public InputDescription(IntelliSenseTextBoxViewModel intelliSenseTextBoxViewModel)
 {
     this.isTextBoxVM = intelliSenseTextBoxViewModel;
     ViewModelHelper.BindNotification(intelliSenseTextBoxViewModel.TextChangedEvent, this, (o, e) =>
     {
         this.InputText = this.isTextBoxVM.TextBoxText;
     });
     // Initialize
     this.isTextBoxVM.TextBoxText = String.Empty;
 }
Example #2
0
 public InputBlockViewModel(MainWindowViewModel parent)
 {
     this.Parent = parent;
     this._imageStackingViewViewModel = new ImageStackingViewViewModel();
     this._userSelectorViewModel = new UserSelectorViewModel();
     this._userSelectorViewModel.LinkChanged += () => this.LinkUserChanged(this.UserSelectorViewModel.LinkElements);
     this._inputUserSelectorViewModel = new UserSelectorViewModel();
     this._inputUserSelectorViewModel.LinkChanged += this.inputLinkUserChanged;
     this._intelliSenseTextBoxViewModel = new IntelliSenseTextBoxViewModel();
     this._intelliSenseTextBoxViewModel.TextChanged += (o, e) => invalidateTagBindState();
     this._intelliSenseTextBoxViewModel.TextChanged += (o, e) => RaisePropertyChanged(() => IsDirectMessage);
     this._intelliSenseTextBoxViewModel.TextChanged += (o, e) => RaisePropertyChanged(() => DirectMessageTarget);
     this._intelliSenseTextBoxViewModel.TextChanged += (o, e) => RaisePropertyChanged(() => IsInReplyToEnabled);
     this._intelliSenseTextBoxViewModel.ItemsOpening += (o, e) => _intelliSenseTextBoxViewModel_OnItemsOpening();
     // Listen changing tab
     this.Parent.ColumnOwnerViewModel.CurrentTabChanged += new Action<TabViewModel>(CurrentTabChanged);
     RegisterKeyAssign();
     ViewModelHelper.BindNotification(Setting.SettingValueChangedEvent, this, (o, e) =>
     {
         RaisePropertyChanged(() => WorkerViewDockOrientation);
     });
 }