Ejemplo n.º 1
0
    protected void btnConfirmDelete_Click(object sender, EventArgs e)
    {
        List <t_LanguageTranslate> list          = languageBL.FindAll(x => x.Language == language && x.Noted.Contains("/Supervisor/Site/Config.aspx")).ToList();
        var lb_installation_point_delete_confirm = list.Where(x => x.ControlId.Contains("lb_installation_point_delete_confirm")).FirstOrDefault();

        var site = _siteBL.GetSite(cboSites.Text);

        if (site != null)
        {
            _siteBL.DeleteSite(site);
            ReBind();
            ntf.VisibleOnPageLoad = true;
            //ntf.Text = "Đã xóa điểm lắp đặt.";
            ntf.Text = lb_installation_point_delete_confirm.Contents;
            SetEmpty();
            cboSites.Focus();
        }
    }