예제 #1
0
 private void OnClickAll()
 {
     if (GraphContainer.IsShownById(_graphId))
     {
         GraphContainer.HideGraphById(_graphId);
     }
     else
     {
         GraphContainer.ShowGraphById(_graphId);
         CurrentData.ForceUpdateData();
     }
 }
예제 #2
0
        protected void OnSaveButtonClicked(object sender, EventArgs e)
        {
            // save entryToSave value into system settings
            if (impKeyEntry.Text != "")
            {
                UserSettings.ImpKey = impKeyEntry.Text;
            }
            if (xivelyApiKeyEntry.Text != "")
            {
                UserSettings.XivelyApiKey = xivelyApiKeyEntry.Text;
            }
            if (xivelyFeedIdEntry.Text != "")
            {
                UserSettings.XivelyFeedId = xivelyFeedIdEntry.Text;
            }
            if (rEntry.Text != "")
            {
                UserSettings.BgColorR = (float)Convert.ToDouble(rEntry.Value);
            }
            if (gEntry.Text != "")
            {
                UserSettings.BgColorG = (float)Convert.ToDouble(gEntry.Value);
            }
            if (bEntry.Text != "")
            {
                UserSettings.BgColorB = (float)Convert.ToDouble(bEntry.Value);
            }

            UserSettings.Save();



            // display status in statusLael
            statusLabel.Text = "Stored!";

            CurrentData.ForceUpdateData();

            Console.WriteLine(UserSettings.CorrectKey);

            UserSettings.UserSetupCompleted = true;
        }
예제 #3
0
        public override void OnAllClick()
        {
            if (_showText)
            {
                _showText = false;
            }
            else
            {
                _showText = true;
            }

            if (GraphContainer.IsShownById(_graphId))
            {
                GraphContainer.HideGraphById(_graphId);
            }
            else
            {
                GraphContainer.ShowGraphById(_graphId);
                CurrentData.ForceUpdateData();
            }
        }