예제 #1
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        private void buttonTree_Click(object sender, RoutedEventArgs e)
        {
            mainTable = DecisionTreeService.Group(mainTable);

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(mainTable, mainDataGrid);
            MessageBox.Show(mainTable.ResultInfo);
        }
예제 #2
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        private void buttonNormalize_Click(object sender, RoutedEventArgs e)
        {
            NormalizationWindow normalizationWindow = new NormalizationWindow(mainTable);

            normalizationWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(normalizationWindow.mainTable, mainDataGrid);
        }
예제 #3
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        private void buttonDiscretize_Click(object sender, RoutedEventArgs e)
        {
            DiscretizationWindow discretizationWindow = new DiscretizationWindow(mainTable);

            discretizationWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(discretizationWindow.mainTable, mainDataGrid);
        }
예제 #4
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        private void buttonGroup_Click(object sender, RoutedEventArgs e)
        {
            KMeansWindow kMeansWindow = new KMeansWindow(mainTable);

            kMeansWindow.ShowDialog();

            ClearMainDataGrid();
            mainDataGrid = DataTableService.InsertDataToGrid(kMeansWindow.mainTable, mainDataGrid);
        }
예제 #5
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        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);
                }
            }
        }
예제 #6
0
파일: MainWindow.xaml.cs 프로젝트: ZNTK/SWD
        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);
                    }
                }
            }
        }