Language.Remove C# (CSharp) Метод

Remove() публичный Метод

public Remove ( int index ) : void
index int
Результат void
    public void Remove(int index)
    {
        this.text = ArrayHelper.Remove(index, this.text);
    }

Usage Example

Пример #1
0
    protected void btnRemove_Click(object sender, EventArgs e)
    {
        try
        {
            int    id  = -1;
            string _id = Request.QueryString["id"].ToString();
            int.TryParse(_id, out id);
            int userId = CurrentEnvironment.LoggedUser.Id;

            int i = Language.Remove(id);

            if (i > 0)
            {
                lblSuccess.Visible = true;
                lblWarning.Visible = false;
                lblError.Visible   = false;
                gridview_Databind();
                //ClearControls(this);
            }
            else
            {
                lblSuccess.Visible = false;
                lblWarning.Visible = true;
                lblError.Visible   = false;
            }
        }
        catch (Exception ex)
        {
            lblSuccess.Visible = false;
            lblWarning.Visible = false;
            lblError.Visible   = true;
        }
    }
All Usage Examples Of Language::Remove