Example #1
0
 public override void DestroyControlPane(Control pane)
 {
     // NOTE: All methods called from Navisworks should catch handle
     //       their own excepetions.
     try
     {
         DFSControl control = pane as DFSControl;
         if (control != null)
         {
             control.Dispose();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().Name);
     }
 }
Example #2
0
        public override Control CreateControlPane()
        {
            DFSControl control = null;

            // NOTE: All methods called from Navisworks should catch & handle
            //       their own excepetions.
            try
            {
                control      = new DFSControl();
                control.Dock = DockStyle.Fill;
                control.CreateControl();
                //control.RefreshTree();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, ex.GetType().Name);
            }
            return(control);
        }