Click here to Skip to main content
15,895,256 members
Articles / Programming Languages / C#

Plugins Manager

Rate me:
Please Sign up or sign in to vote.
4.00/5 (6 votes)
22 May 2008CPOL3 min read 50.9K   1.9K   62  
A plugins manager class to manage a plugins structure
/*
 * Creato da SharpDevelop.
 * Utente: lucabonotto
 * Data: 22/05/2008
 * Ora: 11.06
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Windows.Forms;
using LBSoft.PluginManager;
using TestInterface;

namespace Test1
{
	/// <summary>
	/// Description of Test1Plugin.
	/// </summary>
	public class Test1Plugin : ILBPlugin
							 , ITestInterface
	{
		private Test1Control		control = new Test1Control();
		private ITestProvider		provider = null;
		
		public Test1Plugin()
		{
		}
		
		#region ILBPlugin implementation
		public bool Initialize()
		{
			return true;
		}
		
		public bool Release()
		{			
			return true;
		}
		#endregion
		
		#region ITestInterface implementation
		public Control	PluginControl 
		{ 
			get { return this.control; }
		}
		
		public ITestProvider Provider 
		{ 
			set { this.provider = value; this.control.Provider = value; }
			get	{ return this.provider; }
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Promax Srl
Italy Italy
Software developer with over 16 years of experience, specializing on MFC/C++, C# and software architecture


Company : Promax S.r.l.


Comments and Discussions