private void CallBTN_Click(object sender, EventArgs e) { try { CallRequestCTRL.Call(); CallBTN.Visible = false; BackBTN.Visible = true; } catch (Exception exception) { ClientUtils.HandleException(this.Text, exception); } }
/// <summary> /// Sets the method called by the control. /// </summary> public void SetMethod(NodeId objectId, NodeId methodId) { StringBuilder buffer = new StringBuilder(); buffer.Append("Calling Method "); buffer.Append(m_session.NodeCache.GetDisplayText(methodId)); buffer.Append(" on Object "); buffer.Append(m_session.NodeCache.GetDisplayText(objectId)); this.Text = buffer.ToString(); CallRequestCTRL.SetMethod(objectId, methodId); }
/// <summary> /// Changes the session used for the call request. /// </summary> public void ChangeSession(Session session) { m_session = session; CallRequestCTRL.ChangeSession(session); }