Skip to content

Commit

Permalink
Adding option TryMetadataCache setting #696
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Apr 15, 2022
1 parent f9da4fe commit 906fa92
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 63 deletions.
3 changes: 2 additions & 1 deletion FetchXmlBuilder/AppCode/FXBSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class FXBSettings
public bool ShowValidation { get; set; } = true;
public bool ShowValidationInfo { get; set; } = true;
public bool ShowRepository { get; set; } = false;
public bool TryMetadataCache { get; set; } = true;
}

public class QueryOptions
Expand Down Expand Up @@ -196,7 +197,7 @@ internal void SetContentWindow(ContentType type, ContentWindow windowSettings)

public class FXBConnectionSettings
{
public string FetchXML { get; set; } = string.Empty;
public string FetchXML { get; set; } = QueryOptions.DefaultNewQuery;
}

public class QueryRepository
Expand Down
152 changes: 90 additions & 62 deletions FetchXmlBuilder/Forms/Settings.Designer.cs

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

2 changes: 2 additions & 0 deletions FetchXmlBuilder/Forms/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ private void PopulateSettings(FXBSettings settings)
propXmlColors.SelectedObject = settings.XmlColors;
txtFetch.ConfigureForXml(settings);
txtFetch.FormatXML(settings.QueryOptions.NewQueryTemplate, settings);
chkTryMetadataCache.Checked = settings.TryMetadataCache;
}

private int SettingResultToComboBoxItem(ResultOutput resultOutput)
Expand Down Expand Up @@ -80,6 +81,7 @@ internal FXBSettings GetSettings()
settings.ShowRepository = chkShowRepository.Checked;
settings.QueryOptions.ShowAllAttributes = chkShowAllAttributes.Checked;
settings.XmlColors = propXmlColors.SelectedObject as XmlColors;
settings.TryMetadataCache = chkTryMetadataCache.Checked;
return settings;
}

Expand Down

0 comments on commit 906fa92

Please sign in to comment.