private void Editar() { this.Mode = Mode.Edit; this._originalValue = (OpcionViewModel)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 = (OpcionViewModel)this.MemberwiseClone(); } Container.Editando = false; //Visibility.Hidden; }