source: branches/eraser6/pluginsRewrite/Eraser.Plugins/PluginLoadEventArgs.cs @ 2293

Revision 2293, 1.6 KB checked in by lowjoel, 4 years ago (diff)

Rename the PluginInstance? class to be the PluginInfo? class.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1/*
2 * $Id$
3 * Copyright 2008-2010 The Eraser Project
4 * Original Author: Joel Low <lowjoel@users.sourceforge.net>
5 * Modified By:
6 *
7 * This file is part of Eraser.
8 *
9 * Eraser is free software: you can redistribute it and/or modify it under the
10 * terms of the GNU General Public License as published by the Free Software
11 * Foundation, either version 3 of the License, or (at your option) any later
12 * version.
13 *
14 * Eraser is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
17 *
18 * A copy of the GNU General Public License can be found at
19 * <http://www.gnu.org/licenses/>.
20 */
21
22using System;
23using System.Collections.Generic;
24using System.Linq;
25using System.Text;
26
27namespace Eraser.Plugins
28{
29    /// <summary>
30    /// Provides the event arguments for the PluginLoad event, raised when the Plugins
31    /// library needs to decide whether to load a given plugin.
32    /// </summary>
33    public class PluginLoadEventArgs : EventArgs
34    {
35        /// <summary>
36        /// Constructor.
37        /// </summary>
38        /// <param name="info">The plugin information to be passed to the approving
39        /// delegate.</param>
40        internal PluginLoadEventArgs(PluginInfo info)
41        {
42            Plugin = info;
43            Load = true;
44        }
45
46        /// <summary>
47        /// Gets the plugin associated with this event.
48        /// </summary>
49        public PluginInfo Plugin { get; private set; }
50
51        /// <summary>
52        /// Gets or Sets whether the current plugin should be loaded.
53        /// </summary>
54        public bool Load { get; set; }
55    }
56}
Note: See TracBrowser for help on using the repository browser.