/// <summary>
        /// Raises the Value changed Event
        /// </summary>
        /// <param name="eventArgs"></param>
        private void OnValueChanged(OrderCriteriaChangedEventArgs eventArgs)
        {
            EventHandler <OrderCriteriaChangedEventArgs> handler = ValueChanged;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
Example #2
0
        /// <summary>
        /// Occurs when the Order Criteria changes in the Population Interaction Unit.
        /// </summary>
        /// <param name="sender">Sender object.</param>
        /// <param name="eventArgs">OrderCriteriaChangedEventArgs.</param>
        private void HandleOrderCriteriaValueChanged(object sender, OrderCriteriaChangedEventArgs eventArgs)
        {
            if (Filters != null)
            {
                // Refresh the grid only if there are no filters in the Population Interaction Unit.
                if (Filters.Count <= 0)
                {
                    // Checking pending changes.
                    if (!CheckPendingChanges(true, true))
                    {
                        return;
                    }
                    // Update the current context.
                    UpdateContext();

                    // Refresh data grid of the PIU.
                    UpdateData(true);
                }
            }
        }
        /// <summary>
        /// Raises the Value changed Event
        /// </summary>
        /// <param name="eventArgs"></param>
        private void OnValueChanged(OrderCriteriaChangedEventArgs eventArgs)
        {
            EventHandler<OrderCriteriaChangedEventArgs> handler = ValueChanged;

            if (handler != null)
            {
                handler(this, eventArgs);
            }
        }
        /// <summary>
        /// Occurs when the Order Criteria changes in the Population Interaction Unit.
        /// </summary>
        /// <param name="sender">Sender object.</param>
        /// <param name="eventArgs">OrderCriteriaChangedEventArgs.</param>
        private void HandleOrderCriteriaValueChanged(object sender, OrderCriteriaChangedEventArgs eventArgs)
        {
            if (Filters != null)
            {
                // Refresh the grid only if there are no filters in the Population Interaction Unit.
                if (Filters.Count <= 0)
                {
                    // Checking pending changes.
                    if (!CheckPendingChanges(true, true))
                    {
                        return;
                    }
                    // Update the current context.
                    UpdateContext();

                    // Refresh data grid of the PIU.
                    UpdateData(true);
                }
            }
        }