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); } }
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); }