private void 创建新的规则ToolStripMenuItem_Click(object sender, EventArgs e) { var dlg = new frAddRules(); dlg.ShowDialog(); GetList(); }
private void button2_Click(object sender, EventArgs e) { var dlg = new frAddRules(); dlg.ShowDialog(); GetList(); }
private void 批量生成数据ToolStripMenuItem_Click(object sender, EventArgs e) { var dlg = new frAddRules(); var result = dlg.ShowDialog(); if (result == DialogResult.OK) { var dlg2 = new frMgtRules(); dlg2.ShowDialog(); } }
public frSelRules() { InitializeComponent(); dataGridView1.RowsDefaultCellStyle.ForeColor = ColorTranslator.FromHtml("#111111"); dataGridView1.RowsDefaultCellStyle.BackColor = ColorTranslator.FromHtml("#ffffff"); var result = GetList(); if (result <= 0) { var dlg = new frAddRules(); dlg.ShowDialog(); GetList(); } }