Exemple #1
0
        protected override void SaveModifications()
        {
            if (_MenuNavBar.Exist(txtId.Text) && this.ActionType == Fwk.UI.Common.ActionTypes.Create)
            {
                base.MessageViewer.Show(string.Concat("Ya existe un ID = ", txtId.Text));
                txtId.SelectAll();
                txtId.Focus();
                return;
            }



            _CopyGroup.Id          = txtId.Text;
            _CopyGroup.Caption     = txtCaption.Text;
            _CopyGroup.ToolTipText = txtToolTip.Text;

            _CopyGroup.ContainTree = !(bool)this.radioGroup1.EditValue;//radioButton_Tree.Checked;
            _CopyGroup.GroupStyle  = (NavBarGroupStyle)Enum.Parse(typeof(NavBarGroupStyle), cmdGroupStyle.Text);
            OnMenuItemSaved(new MenuItemSavedEventArgs(_CopyGroup));
        }