#region Using

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using PluginInterface;

#endregion Using

namespace HelloWorld
{
    class Plugin : IPlugin
    {
        #region Fields

        String myName = "Hello World";
        String myDescription = "This is a sample plugin template.";
        String myAuthor = "Latheesan";
        String myVersion = "1.0.0";
        String myWebsite = "http://www.Guardian-RO.com/";
        UserControl myPluginUI;

        #endregion Fields

        #region Methods

        public String Name
        {
            get { return myName; }
        }

        public String Description
        {
            get { return myDescription; }
        }

        public String Author
        {
            get { return myAuthor; }
        }

        public String Version
        {
            get { return myVersion; }
        }

        public String Website
        {
            get { return myWebsite; }
        }

        public UserControl PluginUI
        {
            get { return myPluginUI; }
        }

        public Color PluginUIBackColor
        {
            get { return myPluginUI.BackColor; }
        }

        public void Initialize(String SelectionQuery)
        {
            this.myPluginUI = new PluginUI();
        }

        public void Dispose()
        {
            if (null != this.myPluginUI)
            {
                this.myPluginUI.Dispose();
                this.myPluginUI = null;
            }
        }

        #endregion Methods
    }
}
