private static NotificacionesLog GetFromEntityFromViewModel(NotificacionesLogModel notiLog) { return(new NotificacionesLog { IdNotificacionLog = notiLog.IdNotificacionLog, IdNotificacion = notiLog.IdNotificacion, Usuario = notiLog.Usuario, Titulo = notiLog.Titulo, Nota = notiLog.Nota, Intervalo = notiLog.Intervalo, Link = notiLog.Link, Vigencia = notiLog.Vigencia, Contador = notiLog.Contador, Activo = notiLog.Activo, AplicacionId = notiLog.AplicacionId, Aplicacion = notiLog.Aplicacion, IdTipo = notiLog.IdTipo, Tipo = notiLog.Tipo, IdTipoVigencia = notiLog.IdTipoVigencia, TipoVigencia = notiLog.TipoVigencia, FechaCierre = notiLog.FechaCierre, FechaCreacion = notiLog.FechaCreacion, Mostrado = notiLog.Mostrado, MostradoPrimeraVez = notiLog.MostradoPrimeraVez, MostradoUltimaVez = notiLog.MostradoUltimaVez }); }
private void RecibirNotifciacionDelServidor(NotificacionesLogModel objNotification) { if (OnRecibirNotificaciones != null) { OnRecibirNotificaciones(objNotification); } }
static void _signalCliente_OnRecibirNotificaciones(NotificacionesLogModel notiModel) { if (notiModel.Usuario.Equals(_CurrentUser)) { _Scv.SettingDlg.OnShowNotification(notiModel); } }
private void ClienteOnOnRecibirNotificaciones(NotificacionesLogModel notiModel) { if (OnShowNotification != null) { OnShowNotification(notiModel); } }
private void showNotificaciones(NotificacionesLogModel notiModel) { if (OnShowNotification != null) { OnShowNotification(notiModel); //cliente.RegistrarLecturaNotificacion(notiModel.IdNotificacionLog, notiModel.Usuario, ""); } }
public void OnShowNotification(NotificacionesLogModel notifCliente) { PopupNotify p = new PopupNotify(); p.WaitTime = 0; p.Title = string.Format("[{0}] {1}", notifCliente.Aplicacion, notifCliente.Titulo); p.Message = notifCliente.Nota; p.Link = notifCliente.Link; p.ShowForever = true; p.NotiLogId = notifCliente.IdNotificacionLog; p.OnCloseNotification += p_OnCloseNotification; p.OnNotificationShown += p_OnNotificationShown; p.WaitOnMouseOver = true; this.Invoke(new MethodInvoker(() => { p.Show(); })); }
public void DispachNotification(NotificacionesLogModel objNotificacion) { // HubContext.Clients.Group(objNotificacion.Usuario).OnDispachNotification(objNotificacion); HubContext.Clients.All.OnDispachNotification(objNotificacion); }