Exemplo n.º 1
0
        /// <summary>
        /// Returns an array of PluginForms loaded from each plugin
        /// </summary>
        /// <param name="BackColor">Background Color of Tab</param>
        /// <param name="ForeColor">Foreground Color of Tab</param>
        public PluginForm[] GetPlugin(System.Drawing.Color BackColor, System.Drawing.Color ForeColor)
        {
            PluginForm[] ret = new PluginForm[colAvailablePlugins.Count];
            int          x   = 0;

            foreach (Types.AvailablePlugin pluginOn in this.colAvailablePlugins)
            {
                PluginForm tempTPage = new PluginForm();
                tempTPage.BackColor  = BackColor;
                tempTPage.ForeColor  = ForeColor;
                tempTPage.AutoScroll = true;
                tempTPage.Name       = "pluginTab" + x.ToString();
                tempTPage.Text       = pluginOn.Instance.TabText + " by " + pluginOn.Instance.Author;
                tempTPage.plugAuth   = pluginOn.Instance.Author;
                tempTPage.plugDesc   = pluginOn.Instance.Description;
                tempTPage.plugName   = pluginOn.Instance.Name;
                tempTPage.plugVers   = pluginOn.Instance.Version;
                tempTPage.plugText   = pluginOn.Instance.TabText;
                tempTPage.Tag        = x;
                ret[x]    = tempTPage;
                tempTPage = null;
                x++;
            }
            return(ret);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Returns an array of PluginForms loaded from each plugin
 /// </summary>
 /// <param name="BackColor">Background Color of Tab</param>
 /// <param name="ForeColor">Foreground Color of Tab</param>
 public PluginForm[] GetPlugin(System.Drawing.Color BackColor, System.Drawing.Color ForeColor)
 {
     PluginForm[] ret = new PluginForm[colAvailablePlugins.Count];
     int x = 0;
     foreach (Types.AvailablePlugin pluginOn in this.colAvailablePlugins)
     {
         PluginForm tempTPage = new PluginForm();
         tempTPage.BackColor = BackColor;
         tempTPage.ForeColor = ForeColor;
         tempTPage.AutoScroll = true;
         tempTPage.Name = "pluginTab" + x.ToString();
         tempTPage.Text = pluginOn.Instance.TabText + " by " + pluginOn.Instance.Author;
         tempTPage.plugAuth = pluginOn.Instance.Author;
         tempTPage.plugDesc = pluginOn.Instance.Description;
         tempTPage.plugName = pluginOn.Instance.Name;
         tempTPage.plugVers = pluginOn.Instance.Version;
         tempTPage.plugText = pluginOn.Instance.TabText;
         tempTPage.Tag = x;
         ret[x] = tempTPage;
         tempTPage = null;
         x++;
     }
     return ret;
 }