private void LoadTrans_button_Click(object sender, EventArgs e) { Loading_label.Text = "Loading data..."; Loading_label.Refresh(); Extract_label.Text = ""; Extract_label.Refresh(); Rules_label.Text = ""; Rules_label.Refresh(); if (_rules != null) { _rules.Clear(); } this.dataGridViewAssociationRules.DataSource = null; this.loadAssociationRulesToolStripMenuItem.Enabled = false; this.saveAssociationRuleToolStripMenuItem.Enabled = false; this.LoadTrans_button.Enabled = false; this.dataGridViewAssociationRules.Refresh(); if (_transazioniItemset == default(List <Transaction>)) { _transazioniItemset = _managerDataMining.GetAllTransactions(); _actualMap = _managerDataMining.GetMap(); } Start_button.Enabled = true; Loading_label.Text = "Data loaded"; Loading_label.Refresh(); }
private void Show_button_Click(object sender, EventArgs e) { Show_button.Enabled = false; if (_rules.Count == 0) { MessageBox.Show("No rules to display!\nRetry selecting a smaller value for the confidence.", "Advice", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } dataGridViewAssociationRules.DataSource = null; associationRuleBindingSource.DataSource = null; FillDataGridView(); LoadTrans_button.Enabled = true; loadAssociationRulesToolStripMenuItem.Enabled = true; saveAssociationRuleToolStripMenuItem.Enabled = true; printAssociationRulesToolStripMenuItem.Enabled = true; Rules_label.Text = "Rules displayed"; Rules_label.Refresh(); Loading_label.Text = ""; Loading_label.Refresh(); Extract_label.Text = ""; Extract_label.Refresh(); }