Beispiel #1
0
        private void BtnDisconnect_Click(object sender, EventArgs e)
        {
            _sikInterface.Disconnect();
            _pageLabel.Text = NOT_CONN_LBL;

            StatusMessage = "Disconnected";
        }
Beispiel #2
0
 /// <summary>
 /// Close connection nicely when closing.
 /// </summary>
 /// <param name="e"></param>
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     _sikInterface.Disconnect();
     base.OnClosing(e);
 }