예제 #1
0
        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;
        }
예제 #2
0
        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();
        }
예제 #3
0
        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 = "";
            }
        }
예제 #4
0
        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 = "";
            }
        }
예제 #5
0
        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 = "";
            }
        }
예제 #6
0
 public virtual void OnPluginSelected(FormGlucoseSettings form)
 {
     form.lblDataSourceLocation.Text = "Dexcom share server";
     form.txtDataSourceLocation.Text = this.shareClient.CurrentDexcomServer;
 }
예제 #7
0
 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";
 }