public void Dispose() { if (!m_IsDisposed) { m_Logger.Log("Disposing page", XCad.Base.Enums.LoggerMessageSeverity_e.Debug); foreach (var ctrl in m_Page.Binding.Bindings.Select(b => b.Control).OfType <IDisposable>()) { try { ctrl.Dispose(); } catch (Exception ex) { m_Logger.Log(ex); } } m_IconsConv.Dispose(); m_IsDisposed = true; Disposed?.Invoke(this); } }
public void Dispose() { m_Logger.Log("Disposing page"); foreach (var ctrl in m_Page.Binding.Bindings.Select(b => b.Control).OfType <IDisposable>()) { ctrl.Dispose(); } m_IconsConv.Dispose(); }
public void Dispose() { m_Logger.Log("Disposing page", XCad.Base.Enums.LoggerMessageSeverity_e.Debug); foreach (var ctrl in m_Page.Binding.Bindings.Select(b => b.Control).OfType <IDisposable>()) { ctrl.Dispose(); } m_IconsConv.Dispose(); }