Ejemplo n.º 1
0
        protected override int Run(string[] commandLine)
        {
            ReloadEvent              += new ReloadEventHandler(BentleyTrain01_ReloadEvent);
            UnloadedEvent            += new UnloadedEventHandler(BentleyTrain01_UnloadedEvent);
            BeforeNewDesignFileEvent += Program_BeforeNewDesignFileEvent;

            return(0);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes the AddIn Called by the AddIn loader after
 /// it has created the instance of this AddIn class
 /// </remarks>
 /// <param name="commandLine"></param>
 /// <returns>0 on success</returns>
 protected override int Run(string[] commandLine)
 {
     MSApp = BMI.Utilities.ComApp;
     MessageBox.Show("进入 csAddins_xml ! fullname: " + MSApp.FullName);
     //  Register reload and unload events, and show the form
     ReloadEvent   += new ReloadEventHandler(PowerCivilAddin1_ReloadEvent);
     UnloadedEvent += new UnloadedEventHandler(PowerCivilAddin1_UnloadedEvent);
     return(0);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes the AddIn Called by the AddIn loader after
        /// it has created the instance of this AddIn class
        /// </remarks>
        /// <param name="commandLine"></param>
        /// <returns>0 on success</returns>
        protected override int Run(string[] commandLine)
        {
            MSApp = BMI.Utilities.ComApp;
            //  Register reload and unload events, and show the form
            ReloadEvent   += new ReloadEventHandler(NetworkDesigner_ReloadEvent);
            UnloadedEvent += new UnloadedEventHandler(NetworkDesigner_UnloadedEvent);

            return(0);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes the AddIn Called by the AddIn loader after
        /// it has created the instance of this AddIn class
        /// </remarks>
        /// <param name="commandLine"></param>
        /// <returns>0 on success</returns>
        protected override int Run(string[] commandLine)
        {

            MSApp = Bentley.MicroStation.InteropServices.Utilities.ComApp;
            // MessageBox.Show("进入 ProgramTest! fullname: " + MSApp.FullName);
            CreateElement.LineAndLineString(null);
            // MessageBox.Show(@"运行完成");

            //  Register reload and unload events, and show the form
            ReloadEvent += new ReloadEventHandler(PowerCivilAddin1_ReloadEvent);
            UnloadedEvent += new UnloadedEventHandler(PowerCivilAddin1_UnloadedEvent);
            return 0;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes the AddIn Called by the AddIn loader after
        /// it has created the instance of this AddIn class
        /// </remarks>
        /// <param name="commandLine"></param>
        /// <returns>0 on success</returns>
        protected override int Run(string[] commandLine)
        {
            MSApp = BMI.Utilities.ComApp;

            // Version check

            /*string versionNumber = "08.11";
             * if (!MSApp.Version.Contains(versionNumber))
             * {
             *  MessageBox.Show(string.Format("This Add-In was built for {0} {1}, please find the Arup Issue Tracker group in Yammer for assistance...", getBentleyProductName(), versionNumber), "Incompatible Version");
             *  return -1;
             * }*/

            //  Register reload and unload events, and show the form
            ReloadEvent   += new ReloadEventHandler(AIT_ReloadEvent);
            UnloadedEvent += new UnloadedEventHandler(AIT_UnloadedEvent);

            // Run IPC app
            // RunAIT();

            return(0);
        }
Ejemplo n.º 6
0
 protected override int Run(string[] commandLine)
 {
     ReloadEvent   += new ReloadEventHandler(PDIWT_MS_ReloadEvent);
     UnloadedEvent += new UnloadedEventHandler(PDIWT_MS_UnloadedEvent);
     return(0);
 }
Ejemplo n.º 7
0
 protected override int Run(string[] commandLine)
 {
     ReloadEvent   += new ReloadEventHandler(CppAddinTest_ReloadEvent);
     UnloadedEvent += new UnloadedEventHandler(CppAddinTest_UnloadedEvent);
     return(0);
 }