Exemple #1
0
        private void btnIsConnected_Click(object sender, EventArgs e)
        {
            int nConnected = SKQuoteLib.SKQuoteLib_IsConnected();

            if (nConnected == 0)
            {
                ConnectedLabel.Text      = "False";
                ConnectedLabel.BackColor = Color.Red;
            }
            else if (nConnected == 1)
            {
                ConnectedLabel.Text      = "True";
                ConnectedLabel.BackColor = Color.Green;
            }
            else if (nConnected == 2)
            {
                ConnectedLabel.Text      = "False";
                ConnectedLabel.BackColor = Color.Yellow;
            }
            else
            {
                ConnectedLabel.Text      = "False";
                ConnectedLabel.BackColor = Color.DarkRed;
            }
        }
Exemple #2
0
 void CheckConnect()
 {
     m_nCode = m_SKQuoteLib.SKQuoteLib_IsConnected();
     OnActionExecuted("SKQuoteLib_IsConnected");
 }