Inheritance: ScriptClass
Exemplo n.º 1
0
 private void ShowPinnedNotification(string title, string message, int NOTIFICACION_ID)
 {
     try
     {
         Ext.Net.Notification PinnedNotification = Ext.Net.Notification.Show(new Ext.Net.NotificationConfig
         {
             Title   = title,
             Html    = message,
             Pinned  = true,
             ShowPin = true,
             Width   = 300,
             Tools   = new ToolsCollection
             {
                 new Tool
                 {
                     Type = ToolType.Save, Handler = "DesktopX.markAsReadNotification('" + NOTIFICACION_ID.ToString() + "');", Qtip = "Guardar como leída."
                 }
             }
         });
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al mostrar notificacion.", ex);
         throw;
     }
 }