Beispiel #1
0
 public void LogifyCrashReport()
 {
     try
     {
         var         isEnabledReport = AppVariable.ReadBoolSetting(AppVariable.AutoSendReport);
         LogifyAlert client          = LogifyAlert.Instance;
         client.ApiKey                  = AppVariable.LogifyAPIKey;
         client.AppName                 = AppVariable.getAppName;
         client.AppVersion              = AppVariable.getAppVersion;
         client.OfflineReportsEnabled   = true;
         client.OfflineReportsCount     = 20;
         client.OfflineReportsDirectory = AppVariable.LogifyOfflinePath;
         client.SendOfflineReports();
         client.StartExceptionsHandling();
         if (isEnabledReport.Equals("True"))
         {
             client.StartExceptionsHandling();
         }
         else
         {
             client.StopExceptionsHandling();
         }
     }
     catch (Exception)
     {
     }
 }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            //Get Skin from Config and App Version
            DevExpress.XtraBars.Helpers.SkinHelper.InitSkinGallery(sRGB, true, true);
            sRGB.GalleryItemClick += new DevExpress.XtraBars.Ribbon.GalleryItemClickEventHandler(rgbi_GalleryItemClick);
            if (Config.ReadSetting("Skin") != "0")
            {
                DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(Config.ReadSetting("Skin"));
            }

            this.Text += ProductVersion;

            LogifyAlert client = LogifyAlert.Instance;

            client.ApiKey = "14BE896FCC8C447492CF910AF3192EAD";
            client.OfflineReportsEnabled   = true;
            client.OfflineReportsCount     = 20;
            client.OfflineReportsDirectory = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            client.SendOfflineReports();
            client.StartExceptionsHandling();
        }