private void buttonTree_Click(object sender, RoutedEventArgs e) { mainTable = DecisionTreeService.Group(mainTable); ClearMainDataGrid(); mainDataGrid = DataTableService.InsertDataToGrid(mainTable, mainDataGrid); MessageBox.Show(mainTable.ResultInfo); }
private void buttonNormalize_Click(object sender, RoutedEventArgs e) { NormalizationWindow normalizationWindow = new NormalizationWindow(mainTable); normalizationWindow.ShowDialog(); ClearMainDataGrid(); mainDataGrid = DataTableService.InsertDataToGrid(normalizationWindow.mainTable, mainDataGrid); }
private void buttonDiscretize_Click(object sender, RoutedEventArgs e) { DiscretizationWindow discretizationWindow = new DiscretizationWindow(mainTable); discretizationWindow.ShowDialog(); ClearMainDataGrid(); mainDataGrid = DataTableService.InsertDataToGrid(discretizationWindow.mainTable, mainDataGrid); }
private void buttonGroup_Click(object sender, RoutedEventArgs e) { KMeansWindow kMeansWindow = new KMeansWindow(mainTable); kMeansWindow.ShowDialog(); ClearMainDataGrid(); mainDataGrid = DataTableService.InsertDataToGrid(kMeansWindow.mainTable, mainDataGrid); }
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); } } }
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); } } } }