示例#1
0
 private void Editar()
 {
     this.Mode               = Mode.Edit;
     this._originalValue     = (OpcionViewModel)this.MemberwiseClone();
     this.Container.Selected = this;
     this.Container.Editando = true; //Visibility.Visible;
 }
示例#2
0
        private void Grabar()
        {
            if (Mode == Mode.Add)
            {
                Container.Items.Add(this);
            }
            else
            {
                _originalValue = (OpcionViewModel)this.MemberwiseClone();
            }

            Container.Editando = false; //Visibility.Hidden;
        }