AutoWikiBrowser.MainForm.ResetSettings C# (CSharp) Method

ResetSettings() private method

Resets settings to Setting Class defaults
private ResetSettings ( ) : void
return void
        private void ResetSettings()
        {
            try
            {
                LoadPrefs(new UserPrefs());

                try
                {
                    foreach (KeyValuePair<string, IAWBPlugin> a in Plugin.AWBPlugins)
                        a.Value.Reset();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Problem resetting plugin\r\n\r\n" + ex.Message);
                }

                CModule.ModuleEnabled = false;
                Text = Program.Name;
                StatusLabelText = "Default settings loaded.";
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error loading settings", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
MainForm