public MainWindow()
        {
            InitializeComponent();
            LogHelper.OnNewEntryAdded += LogHelper_OnNewEntryAdded;

            clientConnector = new ClientConnector();
            if (!clientConnector.Initialize())
            {
                return;
            }

            if (!Properties.Settings.Default.AutostartChanged && !AutostartHelper.AutoStartEnabled(Consts.AppName))
            {
                AutostartHelper.ToggleStartup(Consts.AppName);
            }
        }