private void SetupNetStat()
        {
            var version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            var os      = SysInfo.Load();

            var serial = os.Serial;

#if DEBUG
            var application = "Debug nDoctor";
#else
            var application = "nDoctor";
#endif

            var thread = new BackgroundWorker();

            thread.DoWork += (sender, e) =>
            {
                try
                {
                    Logger.Debug("Sending statistics to the server...");
                    try
                    {
                        using (var proxy = new StatLoggerClient())
                        {
                            proxy.Register(serial, os.Version, application);
                        }
                    }
                    catch (Exception ex)
                    {
                        Logger.Warn("Failed to send statistics!", ex);
                    }
                }
                catch (Exception ex)
                {
                    //Swallow the exception as Statistics are not really important. Log it anyways ;-)
                    this.Logger.Error("Error occured during statistics management.", ex);
                }
            };
            thread.RunWorkerAsync();
        }
        private void SetupNetStat()
        {
            var version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            var os = SysInfo.Load();

            var serial = os.Serial;

            #if DEBUG
             var application = "Debug nDoctor" ;
            #else
            var application = "nDoctor" ;
            #endif

            var thread = new BackgroundWorker();

            thread.DoWork += (sender, e) =>
            {
                try
                {
                    Logger.Debug("Sending statistics to the server...");
                    try
                    {
                        using (var proxy = new StatLoggerClient())
                        {
                            proxy.Register(serial, os.Version, application );
                        }
                    }
                    catch (Exception ex)
                    {
                        Logger.Warn("Failed to send statistics!", ex);
                    }
                }
                catch (Exception ex)
                {
                    //Swallow the exception as Statistics are not really important. Log it anyways ;-)
                    this.Logger.Error("Error occured during statistics management.", ex);
                }
            };
            thread.RunWorkerAsync();
        }