Contains arguments that are available from the event object during the SettingsPane.CommandsRequested event.
コード例 #1
0
ファイル: SettingsPane.cs プロジェクト: baskren/Pontoon
        internal IList <SettingsCommand> OnCommandsRequested()
        {
            SettingsPaneCommandsRequestedEventArgs e = new SettingsPaneCommandsRequestedEventArgs();

            try
            {
                if (_commandsRequested != null)
                {
                    _commandsRequested(this, e);
                    return(e.Request.ApplicationCommands);
                }
            }
            catch { }

            return(null);
        }
コード例 #2
0
ファイル: SettingsPane.cs プロジェクト: inthehand/Charming
        internal IList<SettingsCommand> OnCommandsRequested()
        {
            SettingsPaneCommandsRequestedEventArgs e = new SettingsPaneCommandsRequestedEventArgs();
            try
            {
                if (_commandsRequested != null)
                {
                    _commandsRequested(this, e);
                    return e.Request.ApplicationCommands;
                }
            }
            catch { }

            return null;
        }