private void DoDelegate(DeleteAndAtctiveAndPause action) { string str = this.GdvADZone.SelectList.ToString(); if (!string.IsNullOrEmpty(str) && action(str)) { BasePage.ResponseRedirect("ADZoneManage.aspx"); } }
protected void EBtnPause_Click(object sender, EventArgs e) { DeleteAndAtctiveAndPause action = new DeleteAndAtctiveAndPause(ADZone.PauseADZone); this.DoDelegate(action); }