/// <summary> /// Resets archive invalidation. /// </summary> public void ResetArchiveInvalidation() { DisplayToolViewEventArgs teaArgs = new DisplayToolViewEventArgs(m_tvwToolView, true); DisplayToolView(this, teaArgs); ApplyAI(); CloseToolView(this, teaArgs); }
/// <summary> /// Toggles archive invalidation. /// </summary> public void ToggleArchiveInvalidation() { try { if (!File.Exists(GameMode.SettingsFiles.IniPath)) { MessageBox.Show(String.Format("You have no {0} INI file. Please run {0} to initialize the file before turning on Archive Invalidation.", GameMode.Name), "Missing INI", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } DisplayToolViewEventArgs teaArgs = new DisplayToolViewEventArgs(m_tvwToolView, true); DisplayToolView(this, teaArgs); if (Update()) { ((CheckedCommand)LaunchCommand).IsChecked = IsActive(); } CloseToolView(this, teaArgs); } catch (Exception ex) { MessageBox.Show(ex.Message); } }