protected void UpdateActualizationStatus() { ManualImportQueue miq = CanonManualImport.GetCompleteChannelByUser(SessionManager.LoggedUser.UserId); if (miq == null) { imgActualizationState.Visible = false; } else { imgActualizationState.Visible = true; } }
protected void clbCheckIfReady_Callback(object source, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) { if (String.Equals(e.Parameter, "CheckActualization", StringComparison.CurrentCultureIgnoreCase)) { UpdateActualizationStatus(); } else if (String.Equals(e.Parameter, "GoToFinished", StringComparison.CurrentCultureIgnoreCase)) { ManualImportQueue miq = CanonManualImport.GetCompleteChannelByUser(SessionManager.LoggedUser.UserId); if (miq != null) { ASPxWebControl.RedirectOnCallback(string.Format("~/ChannelMapping.aspx?channel={0}&miq={1}", miq.ChannelId, miq.RecordId)); } } }