From d2826711069fc775cc3b5b41fa35cd2a15cdaa36 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 15 Jul 2015 13:00:14 -0700 Subject: [PATCH] Restore Notification Settings -> Configure button --- ConfigurationPage/CloudSettings/CloudSettingsView.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ConfigurationPage/CloudSettings/CloudSettingsView.cs b/ConfigurationPage/CloudSettings/CloudSettingsView.cs index 2855e1e08..730d60f74 100644 --- a/ConfigurationPage/CloudSettings/CloudSettingsView.cs +++ b/ConfigurationPage/CloudSettings/CloudSettingsView.cs @@ -14,6 +14,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage { private DisableableWidget notificationSettingsContainer; + private Button configureNotificationSettingsButton; public CloudSettingsWidget() : base(LocalizedString.Get("Cloud Settings")) { @@ -97,6 +98,11 @@ namespace MatterHackers.MatterControl.ConfigurationPage ImageWidget levelingIcon = new ImageWidget(notificationSettingsImage); levelingIcon.Margin = new BorderDouble(right: 6, bottom: 6); + configureNotificationSettingsButton = textImageButtonFactory.Generate("Configure".Localize().ToUpper()); + configureNotificationSettingsButton.Margin = new BorderDouble(left: 6); + configureNotificationSettingsButton.VAnchor = VAnchor.ParentCenter; + configureNotificationSettingsButton.Click += new EventHandler(configureNotificationSettingsButton_Click); + notificationSettingsLabel = new TextWidget(LocalizedString.Get("Notification Settings")); notificationSettingsLabel.AutoExpandBoundsToText = true; notificationSettingsLabel.TextColor = ActiveTheme.Instance.PrimaryTextColor; @@ -118,6 +124,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage buttonRow.AddChild(levelingIcon); buttonRow.AddChild(notificationSettingsLabel); buttonRow.AddChild(new HorizontalSpacer()); + buttonRow.AddChild(configureNotificationSettingsButton); buttonRow.AddChild(levelingSwitchContainer); return buttonRow;