Exemplo n.º 1
0
        /// <summary>
        /// Connect to the selected server.
        /// </summary>
        public void Connect()
        {
            OPCSessionServer node = m_SubscriptionTreeView.SelectedNode as OPCSessionServer;

            if (node == null || node.IsConnected)
            {
                return;
            }
            Cursor = Cursors.WaitCursor;
            node.Connect();
            node.SetEnabled();
            Cursor = Cursors.Default;
        }
 /// <summary>
 /// Handles the Click event of the TSMI_Server_Connect control.
 /// Connects to the Server.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void TSMI_Connect_Click(object sender, EventArgs e)
 {
     m_Node.Connect();
 }