Exemplo n.º 1
0
        /// <summary>
        /// Fetches the condition state
        /// </summary>
        private void ShowCondition()
        {
            try
            {
                // build attribute list.
                int[] attributeIDs = new int[mAttributes_.Length];

                for (int ii = 0; ii < mAttributes_.Length; ii++)
                {
                    attributeIDs[ii] = mAttributes_[ii].ID;
                }

                // fetch condition state.
                TsCAeCondition condition = mServer_.GetConditionState(mSource_, mCondition_, attributeIDs);

                // show condition.
                conditionCtrl_.ShowCondition(mAttributes_, condition);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "GetConditionState");
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Fetches the condition state
        /// </summary>
        private void ShowCondition()
        {
            try
            {
                // build attribute list.
                int[] attributeIDs = new int[m_attributes.Length];

                for (int ii = 0; ii < m_attributes.Length; ii++)
                {
                    attributeIDs[ii] = m_attributes[ii].ID;
                }

                // fetch condition state.
                Ae.TsCAeCondition condition = m_server.GetConditionState(m_source, m_condition, attributeIDs);

                // show condition.
                ConditionCTRL.ShowCondition(m_attributes, condition);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "GetConditionState");
            }
        }