private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e)
        {
            switch (e.Type)
            {
            case DataPreprocessingChangedEventType.DeleteColumn:
                columnsRowsMatrix.RemoveAt(e.Column);
                break;

            case DataPreprocessingChangedEventType.AddColumn:
                columnsRowsMatrix.Insert(e.Row, GetList(e.Column));
                dataGridView.RowCount++;
                break;

            case DataPreprocessingChangedEventType.ChangeItem:
                columnsRowsMatrix[e.Column] = GetList(e.Column);
                break;

            case DataPreprocessingChangedEventType.DeleteRow:
            case DataPreprocessingChangedEventType.AddRow:
            default:
                for (int i = 0; i < columnsRowsMatrix.Count; ++i)
                {
                    columnsRowsMatrix[i] = GetList(e.Column);
                }
                break;
            }
            dataGridView.Refresh();
        }
        // TODO : handle also other changed events
        void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e)
        {
            switch (e.Type)
            {
            case DataPreprocessingChangedEventType.DeleteColumn:
                RemoveVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            case DataPreprocessingChangedEventType.AddColumn:
                AddVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            case DataPreprocessingChangedEventType.ChangeColumn:
            case DataPreprocessingChangedEventType.ChangeItem:
                UpdateDataForVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            case DataPreprocessingChangedEventType.DeleteRow:
            case DataPreprocessingChangedEventType.AddRow:
            case DataPreprocessingChangedEventType.Any:
            default:
                //TODO: test with transform
                InitData();
                GenerateChart();
                break;
            }
        }
        private void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e)
        {
            switch (e.Type)
            {
            case DataPreprocessingChangedEventType.DeleteColumn:
                RemoveVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            case DataPreprocessingChangedEventType.AddColumn:
                AddVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            case DataPreprocessingChangedEventType.ChangeColumn:
            case DataPreprocessingChangedEventType.ChangeItem:
                UpdateVariable(Content.PreprocessingData.GetVariableName(e.Column));
                break;

            default:
                ResetAllVariables();
                break;
            }
        }
 private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) {
   OnContentChanged();
   searchIterator = null;
 }
Exemple #5
0
 private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) {
   switch (e.Type) {
     case DataPreprocessingChangedEventType.DeleteColumn:
       columnsRowsMatrix.RemoveAt(e.Column);
       break;
     case DataPreprocessingChangedEventType.AddColumn:
       columnsRowsMatrix.Insert(e.Row, GetList(e.Column));
       dataGridView.RowCount++;
       break;
     case DataPreprocessingChangedEventType.ChangeItem:
       columnsRowsMatrix[e.Column] = GetList(e.Column);
       break;
     case DataPreprocessingChangedEventType.DeleteRow:
     case DataPreprocessingChangedEventType.AddRow:
     default:
       for (int i = 0; i < columnsRowsMatrix.Count; ++i) {
         columnsRowsMatrix[i] = GetList(e.Column);
       }
       break;
   }
   dataGridView.Refresh();
 }
 // TODO : handle also other changed events
 void PreprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e) {
   switch (e.Type) {
     case DataPreprocessingChangedEventType.DeleteColumn:
       RemoveVariable(Content.PreprocessingData.GetVariableName(e.Column));
       break;
     case DataPreprocessingChangedEventType.AddColumn:
       AddVariable(Content.PreprocessingData.GetVariableName(e.Column));
       break;
     case DataPreprocessingChangedEventType.ChangeColumn:
     case DataPreprocessingChangedEventType.ChangeItem:
       UpdateDataForVariable(Content.PreprocessingData.GetVariableName(e.Column));
       break;
     case DataPreprocessingChangedEventType.DeleteRow:
     case DataPreprocessingChangedEventType.AddRow:
     case DataPreprocessingChangedEventType.Any:
     default:
       //TODO: test with transform
       InitData();
       GenerateChart();
       break;
   }
 }
 private void Data_Changed(object sender, DataPreprocessingChangedEventArgs e)
 {
     OnContentChanged();
 }
 private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e)
 {
     OnContentChanged();
     searchIterator = null;
 }
 private void Content_Changed(object sender, DataPreprocessingChangedEventArgs e)
 {
     UpdateData();
 }