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(); } }
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(); } }