Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
acknowledgements gui text
Browse files Browse the repository at this point in the history
  • Loading branch information
dabear committed Mar 6, 2017
1 parent d1c2831 commit dcc84a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 15 additions & 1 deletion FloatingGlucose/FormGlucoseSettings.Designer.cs

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

3 changes: 2 additions & 1 deletion FloatingGlucose/FormGlucoseSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private void FormGlucoseSettings_Load(object sender, EventArgs e)
this.cbDataSource.SelectedItem = plugin;
plugin.Instance.OnPluginSelected(this);

this.lblAck.Text = activePlugin.Acknowledgment;
this.btnBrowse.Visible = activePlugin.RequiresBrowseButton;
this.lblDataSourceLocation.Enabled = txtDataSourceLocation.Enabled = activePlugin.RequiresDataSource;
this.paneUserNamePassword.Enabled = activePlugin.RequiresUserNameAndPassword;
Expand Down Expand Up @@ -331,7 +332,7 @@ private void cbDataSource_SelectedIndexChanged(object sender, EventArgs e)
var selectedPlugin = (this.cbDataSource.SelectedItem as DataSourceInfo);
//PluginLoader.Instance.SetActivePlugin(selectedPlugin.FullName);
selectedPlugin.Instance.OnPluginSelected(this);

this.lblAck.Text = selectedPlugin.Instance.Acknowledgment;
this.paneUserNamePassword.Enabled = selectedPlugin.Instance.RequiresUserNameAndPassword;
this.lblDataSourceLocation.Enabled = txtDataSourceLocation.Enabled = selectedPlugin.Instance.RequiresDataSource;
this.btnBrowse.Visible = selectedPlugin.Instance.RequiresBrowseButton;
Expand Down

0 comments on commit dcc84a8

Please sign in to comment.