Ejemplo n.º 1
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;
     }
 }
Ejemplo n.º 2
0
 public LayoutRuntime(ILayout layout, ILayoutHost host)
 {
     _layout = layout;
     _host   = host;
     _selectedEditBoxManager  = host.SelectedEditBoxManager;
     _host.CanvasSizeChanged += new EventHandler(CanvasSizeChanged);
     UpdateMatrix();
 }
Ejemplo n.º 3
0
 private void CreateSelectedEditBoxManager()
 {
     _selectedEditBoxManager = new SelectedEditBoxManager();
 }