Ejemplo n.º 1
0
        private void buttonTree_Click(object sender, RoutedEventArgs e)
        {
            mainTable = DecisionTreeService.Group(mainTable);

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(mainTable, mainDataGrid);
            MessageBox.Show(mainTable.ResultInfo);
        }
Ejemplo n.º 2
0
        private void buttonNormalize_Click(object sender, RoutedEventArgs e)
        {
            NormalizationWindow normalizationWindow = new NormalizationWindow(mainTable);

            normalizationWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(normalizationWindow.mainTable, mainDataGrid);
        }
Ejemplo n.º 3
0
        private void buttonDiscretize_Click(object sender, RoutedEventArgs e)
        {
            DiscretizationWindow discretizationWindow = new DiscretizationWindow(mainTable);

            discretizationWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(discretizationWindow.mainTable, mainDataGrid);
        }
Ejemplo n.º 4
0
        private void buttonGroup_Click(object sender, RoutedEventArgs e)
        {
            KMeansWindow kMeansWindow = new KMeansWindow(mainTable);

            kMeansWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(kMeansWindow.mainTable, mainDataGrid);
        }
Ejemplo n.º 5
0
        private void buttonConvertToNum_Click(object sender, RoutedEventArgs e)
        {
            ConvertToNumWindow convertToNumWindow = new ConvertToNumWindow(mainTable);

            if (convertToNumWindow.ShowDialog() == false)
            {
                if (convertToNumWindow.result)
                {
                    ClearMainDataGrid();
                    mainDataGrid = DataTableService.InsertDataToGrid(convertToNumWindow.mainTable, mainDataGrid);
                }
            }
        }
Ejemplo n.º 6
0
        private void buttonImport_Click(object sender, RoutedEventArgs e)
        {
            ImportWindow importWindow = new ImportWindow();

            if (importWindow.ShowDialog() == false)
            {
                if (importWindow.dataWasImported)
                {
                    if (ValidationService.TableIsValid(importWindow.mainTable))
                    {
                        mainDataGrid = DataTableService.InsertDataToGrid(importWindow.mainTable, mainDataGrid);
                        mainTable    = importWindow.mainTable;
                    }
                    else
                    {
                        MessageBox.Show("W pliku występują braki danych!", "Błąd", MessageBoxButton.OK, MessageBoxImage.Error);
                    }
                }
            }
        }