public override UserControl ConnectionDialog() { if (panel == null) { panel = new VirtualPrinterPanel(); panel.Connect(this); } return(panel); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (panel != null) panel.Dispose(); if(injectLock !=null) ((IDisposable)injectLock).Dispose(); panel = null; injectLock = null; } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (panel != null) { panel.Dispose(); } if (injectLock != null) { ((IDisposable)injectLock).Dispose(); } panel = null; injectLock = null; } }
public override UserControl ConnectionDialog() { if (panel == null) { panel = new VirtualPrinterPanel(); panel.Connect(this); } return panel; }