Skip to content

Commit

Permalink
Settings finer, and a Reset to default button
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Feb 7, 2023
1 parent ab3f67e commit 7b7a417
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
35 changes: 31 additions & 4 deletions FetchXmlBuilder/Forms/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions FetchXmlBuilder/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,13 @@ private void linkGeneral_Click(object sender, LinkLabelLinkClickedEventArgs e)
{
FetchXmlBuilder.HelpClick(tt.GetToolTip(sender as Control));
}

private void btnResetAll_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Are you sure you want it to get back default settings?\n\nYes or No...", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
{
PopulateSettings(new FXBSettings());
}
}
}
}
2 changes: 1 addition & 1 deletion FetchXmlBuilder/Settings/FXBSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public bool UseFriendlyNames
public string CurrentVersion { get; set; }
public string LastOpenedViewEntity { get; set; }
public Guid LastOpenedViewId { get; set; }
public bool DoNotPromptToSave { get; set; } = false;
public bool DoNotPromptToSave { get; set; } = true;
public DockStates DockStates { get; set; } = new DockStates();
public ContentWindows ContentWindows { get; set; } = new ContentWindows();
public bool OpenUncustomizableViews { get; set; } = false;
Expand Down

0 comments on commit 7b7a417

Please sign in to comment.