private void SetMyVM(WalletVM vm) { _myVM = vm; _myVM.ResetChanges(); this.DataContext = _myVM; if (_myVM.SelectedItem == null) { txtTitle.Text = ""; txtContent.Buffer.Text = ""; } else { txtTitle.Text = _myVM.SelectedItem.Title; txtContent.Buffer.Text = _myVM.SelectedItem.Content; } updateTreeview(); }
private void SetMyVM(WalletVM vm) { _myVM = vm; _myVM.ResetChanges(); this.DataContext = _myVM; }