Exemplo n.º 1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            _logger.Trace("FormMain.FormMain_Load()");

            try
            {
                LoadLocalVariables();
                UpdateWindowTitle();

                if (!PluginsManager.CheckIfPluginsAreLoaded())
                {
                    menuMain.Enabled = false;
                    toolStripStatusLabelMain.Text = "Checking plugins";
                    statusStripMain.Refresh();
                    workerCheckPlugins.RunWorkerAsync();
                }
            }
            catch (Exception ex)
            {
                _logger.Error(ex, ex.Message);
                MessageBoxHelper.ProcessException(ex);
            }
        }