コード例 #1
0
        public DefaultCommandsEditor(ICommandProvider commandProvider, IFeatureRegistry registry, FeaturedCommandCollection defaults)
        {
            CommandProvider = commandProvider;
            DefaultCommands = registry.RegisteredFeatures.Select((features) => new DefaultCommandItemThing(registry, features, defaults));

            InitializeComponent();
        }
コード例 #2
0
ファイル: ProgramSettings.cs プロジェクト: strager/NoCap
        public ProgramFeatureRegistry(FeaturedCommandCollection defaultCommands, ICommandProvider commandProvider)
        {
            if (defaultCommands == null) {
                throw new ArgumentNullException("defaultCommands");
            }

            if (commandProvider == null) {
                throw new ArgumentNullException("commandProvider");
            }

            this.defaultCommands = defaultCommands;
            this.commandProvider = commandProvider;
        }
コード例 #3
0
 public DefaultCommandItemThing(IFeatureRegistry registry, CommandFeatures features, FeaturedCommandCollection defaults)
 {
     this.registry = registry;
     this.features = features;
     this.defaults = defaults;
 }
コード例 #4
0
ファイル: FeaturedCommandProxy.cs プロジェクト: strager/NoCap
 public FeaturedCommandProxy(FeaturedCommandCollection commandCollection, CommandFeatures features)
 {
     this.commandCollection = commandCollection;
     this.features = features;
 }
コード例 #5
0
ファイル: ProgramSettings.cs プロジェクト: strager/NoCap
 public ProgramSettingsData()
 {
     this.plugins = new PluginCollection();
     this.defaultCommands = new FeaturedCommandCollection();
     this.commands = new BindableCollection<ICommand>();
 }