Exemple #1
0
        private void ReloadMemberMeasurementsPager()
        {
            MeasurementGroup currentItem = m_dataContext.CurrentItem;

            MemberMeasurementsPager.FilterExpression = string.Format("SignalID IN (SELECT SignalID FROM MeasurementGroupMeasurement WHERE NodeID = '{0}' AND MeasurementGroupID = {1})", currentItem.NodeID.ToString().ToLower(), currentItem.ID);
            MemberMeasurementsPager.ReloadDataGrid();
        }
        private void RemoveMeasurementsButton_Click(object sender, RoutedEventArgs e)
        {
            int count = MemberMeasurementsPager.SelectedMeasurements.Count;

            if (count > 1000)
            {
                string message =
                    $"You have selected {count} measurements. " +
                    $"It may take some time to complete this operation. " +
                    $"Would you like to continue?";

                if (!m_dataContext.Confirm(message, "Too many measurements"))
                {
                    return;
                }
            }

            m_dataContext.RemoveMeasurement(MemberMeasurementsPager.SelectedMeasurements);
            MemberMeasurementsPager.ReloadDataGrid();
            MemberMeasurementsPager.ClearSelections();
        }
Exemple #3
0
 private void RemoveMeasurementsButton_Click(object sender, RoutedEventArgs e)
 {
     m_dataContext.RemoveMeasurement(MemberMeasurementsPager.SelectedMeasurements);
     MemberMeasurementsPager.ReloadDataGrid();
     MemberMeasurementsPager.ClearSelections();
 }