Ejemplo n.º 1
0
 private void btnLoadPlugin_Click(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() == DialogResult.Cancel)
     {
         return;
     }
     if (openFileDialog.FileName.EndsWith(".dll"))
     {
         PluginsManager.LoadPlugin(openFileDialog.FileName);
         comboBoxPlugin.DataSource = PluginsManager.GetPlugins();
     }
     else
     {
         MessageBox.Show("Plugin file should be .dll file");
     }
 }