private void OnClickAll() { if (GraphContainer.IsShownById(_graphId)) { GraphContainer.HideGraphById(_graphId); } else { GraphContainer.ShowGraphById(_graphId); CurrentData.ForceUpdateData(); } }
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; }
public override void OnAllClick() { if (_showText) { _showText = false; } else { _showText = true; } if (GraphContainer.IsShownById(_graphId)) { GraphContainer.HideGraphById(_graphId); } else { GraphContainer.ShowGraphById(_graphId); CurrentData.ForceUpdateData(); } }