コード例 #1
0
        /// <summary>
        /// The threadprc.
        /// </summary>
        private void WindowPlugins()
        {
            var modelPl = new PluginsOptionsModel();
            var plugins = new List<IPlugin> { new DummyLocalAnalyserExtension() };

            var windowPlugins = new PluginOptionsWindow(modelPl);
            modelPl.Plugins = new ReadOnlyCollection<IPlugin>(plugins);
            windowPlugins.ShowDialog();
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserSelectControl"/> class.
 /// </summary>
 /// <param name="model">
 /// The model.
 /// </param>
 public UserSelectControl(PluginsOptionsModel model)
 {
     this.model = model;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginOptionsWindow"/> class.
 /// </summary>
 /// <param name="dataModel">
 /// The data model.
 /// </param>
 public PluginOptionsWindow(PluginsOptionsModel dataModel)
 {
     this.InitializeComponent();
     dataModel.RequestClose += (s, e) => this.Close();
     this.DataContext = dataModel;
 }