private void tbGameDir_TypingFinished(object sender, EventArgs e) { IoC.Archiver.ClearCache(); if (UpdateGameDirStatus()) { SettingsOkay?.Invoke(); } }
private void btnGameDir_Click(object sender, EventArgs e) { var ofd = new VistaFolderBrowserDialog(); if (ofd.ShowDialog() == true) { tbGameDir.EnableTypingEvent = false; tbGameDir.Text = ofd.SelectedPath; tbGameDir.EnableTypingEvent = true; if (UpdateGameDirStatus()) { SettingsOkay?.Invoke(); } } }
private async Task btnArchiver_Click(object sender, EventArgs e) { using var _ = new ControlLock(btnArchiver); if (!UpdateGameDirStatus()) { return; } IoC.Notif.ShowStatus("Copying Oodle library..."); await IoC.Archiver.GetLibrary(); IoC.Notif.ShowStatus("Oodle updated"); if (UpdateArchiverStatus()) { SettingsOkay?.Invoke(); } }