Exemplo n.º 1
0
        private void listAddons_SelectedIndexChanged(object sender, EventArgs e)
        {
            IPlugin addon = GetSelectedAddon();

            if (addon != null)
            {
                Type     type = addon.GetType();
                Assembly asm  = type.Assembly;

                tbTitle.Text            = type.Assembly.GetName().Name;
                tbCopyright.Text        = AddonForm.GetAssemblyCopyrightAttribute(asm);
                tbDescription.Text      = AddonForm.GetAssemblyDescriptionAttribute(asm);
                tbProduct.Text          = AddonForm.GetAssemblyProductAttribute(asm);
                tbFirma.Text            = AddonForm.GetAssemblyTrademarkAttribute(asm);
                tbVersion.Text          = AddonForm.GetAssemblyFileVersionAttribute(asm);
                tbFileName.Text         = asm.ManifestModule.Name;
                tbAddonDescription.Text = AddonForm.GetIAddonDescription(addon);
                chkEnabled.Checked      = GetEnabledState(addon as IPlugin);
            }
        }
Exemplo n.º 2
0
 private void btPlugins_Click(object sender, EventArgs e)
 {
     AddonForm a = new AddonForm(mc.Plugins);
     a.Show();
 }