示例#1
0
 private void _mainWidget_Destroyed(object sender, System.EventArgs e)
 {
     try
     {
         propertyEditor.Dispose();
         propertyEditor = null;
         (scriptEditor as ViewBase)?.Dispose();
         scriptEditor          = null;
         mainWidget.Destroyed -= _mainWidget_Destroyed;
         owner = null;
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }
示例#2
0
 private void _mainWidget_Destroyed(object sender, System.EventArgs e)
 {
     try
     {
         profileGrid.Dispose();
         profileGrid = null;
         properitesView.Dispose();
         properitesView = null;
         graph.Dispose();
         graph = null;
         mainWidget.Destroyed -= _mainWidget_Destroyed;
         owner = null;
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }