Prompts the user to select an area to use as an event filter.
Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        /// <summary>
        /// Handles the Click event of the Conditions_SetAreaFilterMI control.
        /// </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 Conditions_SetAreaFilterMI_Click(object sender, EventArgs e)
        {
            try
            {
                NodeId areaId = new SetAreaFilterDlg().ShowDialog(m_session);

                if (areaId == null)
                {
                    return;
                }

                m_filter.AreaId = areaId;

                UpdateFilter();
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Handles the Click event of the Conditions_SetAreaFilterMI control.
        /// </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 Conditions_SetAreaFilterMI_Click(object sender, EventArgs e)
        {
            try
            {
                NodeId areaId = new SetAreaFilterDlg().ShowDialog(m_session);

                if (areaId == null)
                {
                    return;
                }

                m_filter.AreaId = areaId;

                UpdateFilter();
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }