Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cert Location Setting and Recently Used Strings #39

Merged
merged 10 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions SyncKusto/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
<setting name="UseLegacyCslExtension" serializeAs="String">
<value>True</value>
</setting>
<setting name="CertificateLocation" serializeAs="String">
<value>CurrentUser</value>
</setting>
</SyncKusto.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion SyncKusto/MainForm.Designer.cs

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

10 changes: 10 additions & 0 deletions SyncKusto/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ IDatabaseSchema TryGetSchema(Func<Either<IOperationError, DatabaseSchema>> schem

spcSource.ReportProgress(string.Empty);
spcTarget.ReportProgress(string.Empty);

// Save the cluster and databases used in recent history to populate the combo boxes for
// next time and then reload them both. (Note that combining save an reload into a
// single operation would mean that the source recent history list wouldn't contain
// whatever was just used in the target schema so we keep them as separate steps.)
spcSource.SaveRecentValues();
spcTarget.SaveRecentValues();
spcSource.ReloadRecentValues();
spcTarget.ReloadRecentValues();

// Enable the update button now that a comparison has been generated.
btnUpdate.Enabled = true;
}
Expand Down
45 changes: 45 additions & 0 deletions SyncKusto/Properties/Settings.Designer.cs

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

12 changes: 12 additions & 0 deletions SyncKusto/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,17 @@
<Setting Name="UseLegacyCslExtension" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="CertificateLocation" Type="System.String" Scope="User">
<Value Profile="(Default)">CurrentUser</Value>
</Setting>
<Setting Name="RecentClusters" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="RecentDatabases" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="RecentAppIds" Type="System.Collections.Specialized.StringCollection" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
90 changes: 45 additions & 45 deletions SyncKusto/SchemaPickerControl.Designer.cs

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

Loading
Loading