public FormBase() { projectService = new ProjectService(); dataService = new DataService(); dataFileService = new DataFileService(); AttributeDefinitionService = new AttributeDefinitionService(); decisionTableHistoryService = new DecisionTableHistoryService(); dataMiningService = new DataMiningService(); }
void formApproximation_SelectHandlerTracker(object sender, EventArgs e) { var decisionTableHistoryView = (DecisionTableHistoryView)sender; DataMiningService service = new DataMiningService(); DataFileService dataFileService = new DataFileService(); AttributeDefinitionService attributeDefinitionService = new AttributeDefinitionService(); var activateDataFile = dataFileService.GetActivedDataFile(); var attributeDefs = attributeDefinitionService.GetList(activateDataFile.Id); service.Approximation(attributeDefs, decisionTableHistoryView.Id); MessageBox.Show("Run Approximation successfully", "Approximation"); //var quickReductResult = service.QuickReduct(attributeDefs, decisionTableHistoryView.Id); //var dtHistory = quickReductResult.Item1; //var reducts = quickReductResult.Item2; //var form = new QuickReductResultForm(dtHistory, reducts); //form.MdiParent = this; //form.Show(); }
void formQuickReduct_SelectHandlerTracker(object sender, EventArgs e) { var decisionTableHistoryView = (DecisionTableHistoryView)sender; DataMiningService service = new DataMiningService(); DataFileService dataFileService = new DataFileService(); AttributeDefinitionService attributeDefinitionService = new AttributeDefinitionService(); var activateDataFile = dataFileService.GetActivedDataFile(); var attributeDefs = attributeDefinitionService.GetList(activateDataFile.Id); var quickReductResult = service.QuickReduct(attributeDefs, decisionTableHistoryView.Id); var dtHistory = quickReductResult.Item1; var reducts = quickReductResult.Item2; var form = new QuickReductResultForm(dtHistory, reducts); form.MdiParent = this; form.Show(); }