Beispiel #1
0
 public MyPluginControl()
 {
     InitializeComponent();
     MyPluginFactory                = new Factories.MyPluginFactory();
     AttributeMetadataHandler       = MyPluginFactory.NewAttributeMetadataHandler(this);
     CoreToolsDownloader            = MyPluginFactory.NewCoreToolsDownloader(this);
     EntityGeneratorHandler         = MyPluginFactory.NewEntityGeneratorHandler(this, metadataTree);
     EntityMetadataHandler          = MyPluginFactory.NewEntityMetadataHandler(this, metadataTree);
     RelationshipMetadataHandler    = MyPluginFactory.NewRelationshipMetadataHandler(this);
     treeEventHandler               = new TreeViewAdvBeforeCheckEventHandler(this.MetadataTree_BeforeCheck);
     this.metadataTree.BeforeCheck += treeEventHandler;
 }
 public MyPluginControl()
 {
     InitializeComponent();
     MyPluginFactory                = new Factories.MyPluginFactory();
     AttributeMetadataHandler       = MyPluginFactory.NewAttributeMetadataHandler(this);
     CoreToolsDownloader            = MyPluginFactory.NewCoreToolsDownloader(this);
     EntityGeneratorHandler         = MyPluginFactory.NewEntityGeneratorHandler(this, metadataTree, txtOutput);
     EntityMetadataHandler          = MyPluginFactory.NewEntityMetadataHandler(this, metadataTree);
     RelationshipMetadataHandler    = MyPluginFactory.NewRelationshipMetadataHandler(this);
     pluginViewModel                = MyPluginFactory.NewPluginViewModel();
     treeEventHandler               = new TreeViewAdvBeforeCheckEventHandler(this.MetadataTree_BeforeCheck);
     this.metadataTree.BeforeCheck += treeEventHandler;
     btnGenerateEntities.Enabled    = pluginViewModel.Generate_Enabled;
     btnGetMetadata.Enabled         = pluginViewModel.ActiveConnection;
     DataBind();
 }