예제 #1
0
 public void ChangeLayout(ILayout layout)
 {
     if (layout == null)
     {
         return;
     }
     if (_layout != null)
     {
         _layout.Dispose();
     }
     _layout = layout;
     UpdateMatrix();
 }
예제 #2
0
 public void Dispose()
 {
     _sizeChangedHandler    = null;
     _onElementIsDragDroped = null;
     RemoveEvents();
     if (_selectedEditBoxManager != null)
     {
         (_selectedEditBoxManager as SelectedEditBoxManager).Dispose();
         _selectedEditBoxManager = null;
     }
     if (_layout != null)
     {
         _layout.Dispose();
         _layout = null;
     }
     if (_template != null)
     {
         _template.Dispose();
         _template = null;
     }
     if (_drawArgs != null)
     {
         _drawArgs.Reset(null);
         _drawArgs = null;
     }
     if (_layoutRuntime != null)
     {
         _layoutRuntime.Dispose();
         _layoutRuntime = null;
     }
 }