Ejemplo n.º 1
0
    protected void btnSave_ClickAction(object sender, EventArgs e)
    {
        _pickListView = (IPickListView)BindingSource.Current;
        PickListAttributes att = GetAttributes();
        PickList           pl  = PickList.GetPickListById(_pickListView.Id.ToString());

        pl.Text         = txtPicklistName.Text;
        pl.Shorttext    = att.ToString();
        pl.LanguageCode = cboDefaultLanguage.Text;
        pl.Id           = chkIsManaged.Checked ? 1 : 0;

        PickList.SavePickList(pl);
    }
Ejemplo n.º 2
0
    protected void btnSave_ClickAction(object sender, EventArgs e)
    {
        this._pickListView = (IPickListView)this.BindingSource.Current;
        PickListAttributes att = GetAttributes();
        PickList           pl  = PickList.GetPickListById(_pickListView.Id.ToString());

        pl.Text      = txtPicklistName.Text;
        pl.Shorttext = att.ToString();
        if (chkIsManaged.Checked)
        {
            pl.Id = 1;
        }
        else
        {
            pl.Id = 0;
        }


        PickList.SavePickList(pl);
        PLS.ClearPickListCache();
    }