Prompts the user to select an area to use as an event filter.
상속: System.Windows.Forms.Form
예제 #1
0
        /// <summary>
        /// Selects the variable to display.
        /// </summary>
        private void Aggregates_SelectVariableMI_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_session == null)
                {
                    return;
                }

                NodeId nodeId = new Opc.Ua.Client.Controls.SelectNodeDlg().ShowDialog(
                    m_session,
                    Opc.Ua.ObjectIds.ObjectsFolder,
                    "Select Variable to Monitor",
                    ReferenceTypes.Organizes,
                    ReferenceTypes.Aggregates);

                if (nodeId != null)
                {
                    ReadCTRL.ChangeNode(nodeId);
                }
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }
예제 #2
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            ReferenceDescription reference = new SelectNodeDlg().ShowDialog(
                Session,
                RootId,
                View,
                null,
                ReferenceTypeIds);

            if (reference != null)
            {
                SelectedReference = reference;

                if (m_NodeSelected != null)
                {
                    m_NodeSelected(this, new EventArgs());
                }
            }
        }
예제 #3
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            try {
                ReferenceDescription reference =
                    new SelectNodeDlg().ShowDialog(m_browser.Session, RootId, null, "", null);

                if (reference != null && reference.NodeId != null)
                {
                    NodeIdTB.Text = Utils.Format("{0}", reference.NodeId);
                    m_reference   = reference;

                    if (m_IdentifierChanged != null)
                    {
                        m_IdentifierChanged(this, null);
                    }
                }
            } catch (Exception exception) {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
예제 #4
0
        private void EventAreaBTN_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_session == null)
                {
                    return;
                }

                NodeId areaId = new SelectNodeDlg().ShowDialog(m_session, Opc.Ua.ObjectIds.Server, "Select Event Area", Opc.Ua.ReferenceTypeIds.HasEventSource);

                if (areaId == null)
                {
                    return;
                }

                m_areaId = areaId;
                EventAreaTB.Text = m_session.NodeCache.GetDisplayText(m_areaId);
                ResultsLV.ChangeArea(areaId, false);
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }
예제 #5
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            try
            {
                ReferenceDescription reference = new SelectNodeDlg().ShowDialog(m_browser.Session, RootId, null, "", null);

                if (reference != null && reference.NodeId != null)
                {
                    NodeIdTB.Text = Utils.Format("{0}", reference.NodeId);
                    m_reference = reference;

                    if (m_IdentifierChanged != null)
                    {
                        m_IdentifierChanged(this, null);
                    }
                }
            }
            catch (Exception exception)
            {
				GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
예제 #6
0
        private void BrowseBTN_Click(object sender, EventArgs e)
        {
            ReferenceDescription reference = new SelectNodeDlg().ShowDialog(
                Session,
                RootId,
                View,
                null,
                ReferenceTypeIds);

            if (reference != null)
            {
                SelectedReference = reference;

                if (m_NodeSelected != null)
                {
                    m_NodeSelected(this, new EventArgs());
                }
            }
        }
예제 #7
0
        private void NodeIdBTN_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_session == null)
                {
                    return;
                }

                ReferenceDescription reference = new SelectNodeDlg().ShowDialog(
                    m_session,
                    Opc.Ua.ObjectIds.Server,
                    null,
                    "Select Notifier",
                    Opc.Ua.ReferenceTypeIds.HasNotifier);

                if (reference == null)
                {
                    return;
                }

                if (reference.NodeId != m_nodeId)
                {
                    ChangeNode((NodeId)reference.NodeId);
                }
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }
예제 #8
0
        private void Events_SelectEventAreaMI_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_session == null)
                {
                    return;
                }

                NodeId areaId = new SelectNodeDlg().ShowDialog(m_session, Opc.Ua.ObjectIds.Server, "Select Event Area", Opc.Ua.ReferenceTypeIds.HasEventSource);

                if (areaId == null)
                {
                    return;
                }

                EventsLV.ChangeArea(areaId, true);
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }
예제 #9
0
        /// <summary>
        /// Selects the variable to display.
        /// </summary>
        private void Aggregates_SelectVariableMI_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_session == null)
                {
                    return;
                }

                NodeId nodeId = new Opc.Ua.Client.Controls.SelectNodeDlg().ShowDialog(
                    m_session,
                    Opc.Ua.ObjectIds.ObjectsFolder,
                    "Select Variable to Monitor",
                    ReferenceTypes.Organizes,
                    ReferenceTypes.Aggregates);

                if (nodeId != null)
                {
                    ReadCTRL.ChangeNode(nodeId);
                }
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }