/// <summary> /// Initializes a new instance of the <see cref="BaseCircumventLogin" /> class. /// </summary> protected BaseCircumventLogin() : base(new Form { Text = @"ArcFM Viewer for Engine (Circumvent)", Visible = false }) { this.Window.Load += Window_Load; _XmlLogin = new MinerXMLLogin(); _LoginObject = new XmlLoginObject { Visible = false }; }
/// <summary> /// Releases unmanaged and - optionally - managed resources. /// </summary> /// <param name="disposing"> /// <c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only /// unmanaged resources. /// </param> protected virtual void Dispose(bool disposing) { if (disposing) { if (_XmlLogin != null) { _XmlLogin.Dispose(); _XmlLogin = null; } if (_LoginObject != null) { _LoginObject.Dispose(); _LoginObject = null; } if (this.Window != null) { this.Window.Load -= Window_Load; } } }