private void BtnDisconnect_Click(object sender, EventArgs e) { _sikInterface.Disconnect(); _pageLabel.Text = NOT_CONN_LBL; StatusMessage = "Disconnected"; }
/// <summary> /// Close connection nicely when closing. /// </summary> /// <param name="e"></param> protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { _sikInterface.Disconnect(); base.OnClosing(e); }