public SynchronizationProgressWindow(EA.Repository repository)
 {
     InitializeComponent();
     MaximizeBox = false;
     MinimizeBox = false;
     StartPosition = FormStartPosition.CenterScreen;
     FormBorderStyle = FormBorderStyle.FixedSingle;
     this.synchronizationService = new SynchronizationService(repository);
     this.repository = repository;
 }
예제 #2
0
        /// <summary>
        /// EA_Connect events enable Add-Ins to identify their type and to respond to Enterprise Architect start up.
        /// This event occurs when Enterprise Architect first loads your Add-In. Enterprise Architect itself is loading at this time so that while a Repository object is supplied, there is limited information that you can extract from it.
        /// The chief uses for EA_Connect are in initializing global Add-In data and for identifying the Add-In as an MDG Add-In.
        /// Also look at EA_Disconnect.
        /// </summary>
        /// <param name="Repository">An EA.Repository object representing the currently open Enterprise Architect model.
        /// Poll its members to retrieve model data and user interface status information.</param>
        /// <returns>String identifying a specialized type of Add-In: 
        /// - "MDG" : MDG Add-Ins receive MDG Events and extra menu options.
        /// - "" : None-specialized Add-In.</returns>
        public override string EA_Connect(EA.Repository Repository)
        {
            //Database.openConnection();

            this.updateService = new UpdateService();
            updateService.compareVersions();

            this.contextWrapper = new ContextWrapper(Repository);
            this.synchronizationService = new SynchronizationService(Repository);
            this.joinService = new JoinService();
            this.synchronizationChanges = new SynchronizationChanges(Repository);

            return base.EA_Connect(Repository);
        }