ApplicationSettings.AddSettingsScenario.addSettingsScenarioAdd_Click C# (CSharp) Метод

addSettingsScenarioAdd_Click() приватный Метод

This is the click handler for the 'addSettingsScenarioAdd' button. You would replace this with your own handler if you have a button or buttons on this page.
private addSettingsScenarioAdd_Click ( object sender, RoutedEventArgs e ) : void
sender object
e Windows.UI.Xaml.RoutedEventArgs
Результат void
        void addSettingsScenarioAdd_Click(object sender, RoutedEventArgs e)
        {
            Button b = sender as Button;
            if (b != null)
            {
                rootPage.NotifyUser("You selected the " + b.Content+ " button", NotifyType.StatusMessage);
                if (!this.isEventRegistered)
                {
                    // TODO 2.1: be notified before the Settings Charm appears to add our settings
                    SettingsPane.GetForCurrentView().CommandsRequested += onCommandsRequested;
                    this.isEventRegistered = true;
                }
            }
        }