Ejemplo n.º 1
0
        private void OnDataCollected(FdrManagerEventArgs e)
        {
            Ordinats.Clear();
            cb_Abscissa.Items.Clear();
            TableColumns.Clear();

            foreach (var title in m_DataProcessingHelper.GetCollectedMeasuresNames())
            {
                CheckedListItem <string> item = new CheckedListItem <string>()
                {
                    Item = title
                };
                item.PropertyChanged += onOrdinateChecked;
                Ordinats.Add(item);
                cb_Abscissa.Items.Add(title);

                item = new CheckedListItem <string>()
                {
                    Item = title
                };
                item.PropertyChanged += onTabColumnChecked;
                TableColumns.Add(item);
            }

            StatusLabelMain.Content = Properties.Resources.state_success;
            Started = false;
        }
Ejemplo n.º 2
0
 void OnStartNewDataCollecting(FdrManagerEventArgs e)
 {
     Ordinats.Clear();
     cb_Abscissa.Items.Clear();
     TableColumns.Clear();
     StatusLabelSecond.Content = "";
     StatusLabelMain.Content   = Properties.Resources.state_collecting;
 }
Ejemplo n.º 3
0
        private void OnFailure(FdrManagerEventArgs e)
        {
            TableColumns.Clear();
            Ordinats.Clear();
            cb_Abscissa.Items.Clear();

            Action onFailureAction = delegate()
            {
                StatusLabelMain.Content = Properties.Resources.state_failed;
                Started = false;
            };

            if (!Started)
            {
                return;
            }
            Dispatcher.Invoke(onFailureAction);
            MessageBox.Show(e.Message);
        }