Exemplo n.º 1
0
        public void test()
        {
            var testForm = new EDD_TestForm();

            testForm.mainControl.selectedDomainChanged += this.selectedDomainChanged;
            testForm.mainControl.newButtonClicked      += this.newButtonClicked;
            //testForm.mainControl.selectedTabChanged += this.selectedTabChanged;
            testForm.mainControl.setDomains(Domain.getAllDomains(this.settings.businessItemsPackage, this.settings.dataItemsPackage));
            testForm.mainControl.setStatusses(statusses: this.model.getStatusses());
            this._mainControl = testForm.mainControl;
            testForm.Show();
        }
 private void initialiseMainControl()
 {
     if (this._mainControl == null && this.model != null)
     {
         this._mainControl = this.model.addTab(appTitle, guiFQN) as EDD_MainControl;
         this._mainControl.HandleDestroyed        += this.handleHandleDestroyed;
         this._mainControl.selectedDomainChanged  += this.selectedDomainChanged;
         this._mainControl.newButtonClicked       += this.newButtonClicked;
         this._mainControl.filterButtonClicked    += this.filterButtonClicked;
         this._mainControl.getTableButtonClicked  += this.getTableButtonClicked;
         this._mainControl.newLinkedButtonClicked += this.newLinkedButtonClicked;
         this._mainControl.setDomains(Domain.getAllDomains(this.settings.businessItemsPackage, this.settings.dataItemsPackage));
         this._mainControl.setStatusses(statusses: this.model.getStatusses());
         this._mainControl.setLogicalDatatypes(this.logicalDatatypes);
     }
 }
Exemplo n.º 3
0
 public override void EA_FileOpen(EA.Repository repository)
 {
     base.EA_FileOpen(repository);
     //close the tab if still open
     this.model.closeTab(appTitle);
     this._mainControl = null;
     //get settings
     this.settings = new GlossaryManagerSettings(this.model);
     //get the logical datatypes
     this.logicalDatatypes = LogicalDatatype.getAllLogicalDatatypes(this.model);
     //(re)-initialize
     if (this.settings.showWindowAtStartup)
     {
         this.initialiseMainControl();
     }
     this.factory = GlossaryItemFactory.getFactory(this.model, this.settings);
 }
 private void handleHandleDestroyed(object sender, EventArgs e)
 {
     this._mainControl = null;
 }