コード例 #1
0
        private void AddAutoBind()
        {
            var edit = new AutoBindElementEditorViewModel();

            this.Messenger.Raise(new TransitionMessage(edit, "EditBindElement"));
            if (edit.ReturnValue)
            {
                this._autoBindDatas.Add(new HashtagAutoBindViewModel(edit.GetDescription(), this));
                WritebackToSetting();
            }
        }
コード例 #2
0
        private void Edit()
        {
            var edit = new AutoBindElementEditorViewModel(this.Description);

            this.Parent.Messenger.Raise(new TransitionMessage(edit, "EditBindElement"));
            if (edit.ReturnValue)
            {
                this.Description = edit.GetDescription();
                RaisePropertyChanged(() => Description);
                this.Parent.WritebackToSetting();
            }
        }