public virtual void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Dexcom share server"; form.txtDataSourceLocation.Text = this.shareClient.CurrentDexcomServer; form.lblUsername.Text = "User Name"; form.lblPassword.Enabled = true; form.txtPassword.Enabled = true; }
public static void ShowDialogIfNonVisible(this FormGlucoseSettings form) { if (form.Visible) { return; } Debug.WriteLine("Stopping refresh timer as we are showing settings"); AppShared.refreshGlucoseTimer?.Stop(); AppShared.IsShowingSettings = true; form.ShowDialog(); }
public void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Your File Dump location"; var source = form.txtDataSourceLocation.Text.ToLower(); //for this plugin, we don't handle http:// and https:// //if the source does not resemble an url, it should clearly be removed. if (source.StartsWith("http://") || source.StartsWith("https://")) { form.txtDataSourceLocation.Text = ""; } }
public void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Your closest location"; var source = form.txtDataSourceLocation.Text.ToLower(); //for this plugin, we handle only city names and yr.no path names //if the source resembles an url, it should clearly be removed. if (source.StartsWith("http://") || source.StartsWith("https://")) { form.txtDataSourceLocation.Text = ""; } }
public virtual void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Your Nightscout installation URL"; var source = form.txtDataSourceLocation.Text.ToLower(); //for this plugin, we handle only http:// and https:// //if the source does not resemble an url, it should clearly be removed. if (!(source.StartsWith("http://") || source.StartsWith("https://"))) { form.txtDataSourceLocation.Text = ""; } }
public virtual void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Dexcom share server"; form.txtDataSourceLocation.Text = this.shareClient.CurrentDexcomServer; }
public virtual void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Your Nightscout installation URL"; }
public override void OnPluginSelected(FormGlucoseSettings form) { form.lblDataSourceLocation.Text = "Your File Dump location"; }