/*-----------------------------------------------------------------------------*/
        /// <summary>
        /// calls the check method on the close file event.
        /// </summary>
        /// <param name="sender">the class that originated the event</param>
        /// <param name="eventArgs">the arguments to the event.  this will be the
        /// time (bfore or after)</param>
/*-----------------------------------------------------------------------------*/
        internal static void BVSchemFileEventHandler(Bentley.MicroStation.AddIn sender, NewDesignFileEventArgs eventArgs)
        {
            if ((eventArgs.WhenCode == NewDesignFileEventArgs.When.BeforeDesignFileClose) && (!s_runningTraverse))
            {
                KeyinCommands.BVSchemaCheckerCommand("FROM_HOOK");
            }
        }
/*-----------------------------------------------------------------------------*/
        /// <summary>
        /// called on the element to file event.
        /// removed in favor of the native hook
        /// </summary>
        /// <param name="sender">The object that caused this event.</param>
        /// <param name="args">the type of change.</param>
/*-----------------------------------------------------------------------------*/
        internal static void BVSchemaElementEventHandler(Bentley.MicroStation.AddIn sender, ElementChangedEventArgs args)
        {
            //   Console.WriteLine("Element changed " + args.GetType().ToString());

            /*   if(null != args.NewElement)
             *       Debug.Print("Element being added is " + args.NewElement.Type.ToString());
             * if (0 != (long)args.OldElementRef)
             *       Debug.Print("the old element is of type " + elementRef_getType((long)args.OldElementRef).ToString());
             */
        }
Beispiel #3
0
 public AboutForm(Bentley.MicroStation.AddIn host)
 {
     InitializeComponent();
     lblAbout.Text = "Black && Veatch Schema Checker Tool\r\nversion 2.3.4 March-06-2017\r\n\r\n Released";
 }
Beispiel #4
0
 public static PenetrationVM getInstance(
     Bentley.MstnPlatformNET.AddIn addin, string unparsed)
 {
     addin_ = addin;
     return(loadInstace(unparsed));
 }
Beispiel #5
0
 public static OpeningsVM getInstance(
     Bentley.MicroStation.AddIn addin, string unparsed)
 {
     addin_ = addin;
     return(loadInstace(unparsed));
 }
Beispiel #6
0
 public static PenetrationVM getInstance(
     Bentley.MstnPlatformNET.AddIn addin, KeyinOptions options)
 {
     addin_ = addin;
     return(loadInstace(new GroupByTaskModel(addin), options));
 }