Ejemplo n.º 1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            try
            {
                Icon = new Icon(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Thalassic.ico"));
            }
            catch
            {
                Log.Debug("Failed to load icon");
            }

            _ = MessageBox.Show(new Form {
                TopMost = true
            }, "Thalassic will check for updates and then launch, this might take a moment.");
            Cursor = Cursors.WaitCursor;

            // Only check mirrors for new versions at app startup
            _rtw2VersionRegistry.Update(_modRegistry.Mirrors);
            rtw2Installation = new Rtw2Installation(_rtw2VersionRegistry.CurrentRtw2Version, Path.Combine(Program.Rtw2ExecutableDirectory, "Clean"));

            _modRegistry.Update(true);
            RefreshRtw2InstallData();
            UpdateListViews();

            Cursor = Cursors.Default;
        }
 private void FormModDownload_Load(object sender, EventArgs e)
 {
     _rtw2VersionRegistry.Update(_modRegistry.Mirrors);
     _modRegistry.Update(true);
     UpdateManageModsListView();
 }