internal PluginDriver(IMyMetaPlugin plugin) : base(plugin.GetType(), "", false) { this.plugin = plugin; this.IsOleDB = canBrowseDatabase(); }
internal PluginDriver(IMyMetaPlugin plugin) : base(plugin.GetType(),"", false) { this.plugin = plugin; this.IsOleDB = canBrowseDatabase(); }
private void NewAbout_Load(object sender, System.EventArgs e) { this.fun1.Start(); Assembly asmblyMyGen = System.Reflection.Assembly.GetAssembly(typeof(NewAbout)); Assembly asmblyZeus = System.Reflection.Assembly.GetAssembly(typeof(Zeus.ZeusTemplate)); Assembly asmblyPlugins = System.Reflection.Assembly.GetAssembly(typeof(Zeus.IZeusCodeSegment)); Assembly asmblyMyMeta = System.Reflection.Assembly.GetAssembly(typeof(MyMeta.Database)); Assembly asmblyScintilla = System.Reflection.Assembly.GetAssembly(typeof(Scintilla.ScintillaControl)); Assembly asmblyWinFormsUI = System.Reflection.Assembly.GetAssembly(typeof(DockContent)); lstBoxProducts.Items.Add("MyGeneration".PadRight(29) + asmblyMyGen.GetName().Version.ToString()); lstBoxProducts.Items.Add("MyMeta".PadRight(29) + asmblyMyMeta.GetName().Version.ToString()); lstBoxProducts.Items.Add("Zeus Parser".PadRight(29) + asmblyZeus.GetName().Version.ToString()); lstBoxProducts.Items.Add("Plug-in Interface".PadRight(29) + asmblyPlugins.GetName().Version.ToString()); lstBoxProducts.Items.Add("ScintillaNet".PadRight(29) + asmblyScintilla.GetName().Version.ToString()); lstBoxProducts.Items.Add("Scintilla".PadRight(29) + "1.60"); lstBoxProducts.Items.Add("DockPanel Suite".PadRight(29) + asmblyWinFormsUI.GetName().Version.ToString()); lstBoxProducts.Items.Add("Npgsql".PadRight(29) + GetAssemblyVersion("Npgsql", "1.0.0.0")); lstBoxProducts.Items.Add("Firebird .Net Data Provider".PadRight(29) + GetAssemblyVersion("FirebirdSql.Data.Firebird", "1.7.1.0")); lstBoxProducts.Items.Add("System.Data.SQLite".PadRight(29) + GetAssemblyVersion("System.Data.SQLite", "1.0.38.0")); #if !IGNORE_VISTA lstBoxProducts.Items.Add("VistaDB 2.0 ADO.NET Provider".PadRight(29) + "2.0.16"); #else lstBoxProducts.Items.Add(""); // number of items must match #endif lstBoxProducts.Items.Add("Dnp.Utils".PadRight(29) + GetAssemblyVersion("Dnp.Utils", "1.0.0.0")); foreach (string pluginName in MyMeta.dbRoot.Plugins.Keys) { IMyMetaPlugin plugin = dbRoot.Plugins[pluginName] as IMyMetaPlugin; int index = lstBoxProducts.Items.Add(plugin.ProviderName.PadRight(29) + plugin.GetType().Assembly.GetName().Version.ToString()); plugins[index] = plugin; } lstBoxProducts.SelectedIndex = 0; }