private static void SettingsClosing(GadgetSettingsEvent e) { if (e.CloseAction == GadgetSettingsCloseAction.Cancel) { return; } e.Cancel = !saveSettings(); }
private static void SettingsClosed(GadgetSettingsEvent e) { if (e.CloseAction == GadgetSettingsCloseAction.Cancel) { return; } reloadSettingsAndPollNow(); setCurrentFilterLabel(); }
private void OnClosing(GadgetSettingsEvent e) { TextElement tagsTextBox = (TextElement)Document.GetElementById("tagsTextBox"); if (e.CloseAction == e.Action.Commit) { Gallery gallery = GadgetScriptlet.Current.Gallery; gallery.Tags = tagsTextBox.Value; } Gadget.OnSettingsClosing = null; e.Cancel = false; }