private void Editar() { this.Mode = Mode.Edit; this._originalValue = (PreguntaViewModel)this.MemberwiseClone(); this.Container.Selected = this; this.Container.Editando = true; //Visibility.Visible; }
private void Grabar() { if (Mode == Mode.Add) { Container.Items.Add(this); } else { _originalValue = (PreguntaViewModel)this.MemberwiseClone(); } Container.Editando = false; //Visibility.Hidden; }