Exemple #1
0
        private void loadDataBtn_Click(object sender, EventArgs e)
        {
            DialogResult dr3 = MessageBox.Show("是否继续加载,请核对数据?", "加载提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information);//触发事件进行提示

            if (dr3 == DialogResult.No)
            {
                return;
            }
            comboBox1.DataSource   = null;
            dgSize.DataSource      = null;
            dgDoorBan.DataSource   = null;
            dgDoorShell.DataSource = null;
            checkBox2.Checked      = false;

            if (workMan.LoadData())
            {
                LogManager.WriteProgramLog("数据拆分结束");
                workMan.ShowResult(listView1);

                workMan.showDoorTypeList(comboBox1, 0);

                checkBox2.Checked = true;

                richTextBox7.Text = "当前木方数据数量行数为:" + ((DataTable)dgSize.DataSource).Rows.Count.ToString();

                richTextBox8.Text = "当前门皮数据数量行数为:" + ((DataTable)dgDoorShell.DataSource).Rows.Count.ToString();

                rtbResult.Text = "当前门板数据数量行数为:" + ((DataTable)dgDoorBan.DataSource).Rows.Count.ToString();

                dataCheck(dgDoorBan, 1,
                          evokWork0.doorBanLen.ShowValue, evokWork0.doorBanWidth.ShowValue, "门板");
                dataCheck(dgDoorShell, 1,
                          evokWork0.doorShellLen.ShowValue, evokWork0.doorShellWidth.ShowValue, "门皮");
            }
        }
Exemple #2
0
 private void loadDataBtn_Click(object sender, EventArgs e)
 {
     comboBox1.DataSource   = null;
     dgSize.DataSource      = null;
     dgDoorBan.DataSource   = null;
     dgDoorShell.DataSource = null;
     checkBox2.Checked      = false;
     if (workMan.LoadData())
     {
         workMan.ShowResult(listView1);
         workMan.showDoorTypeList(comboBox1, 0);
         checkBox2.Checked = true;
         richTextBox7.Text = "当前木方数据数量行数为:" + ((DataTable)dgSize.DataSource).Rows.Count.ToString();
         richTextBox8.Text = "当前门皮数据数量行数为:" + ((DataTable)dgDoorShell.DataSource).Rows.Count.ToString();
         rtbResult.Text    = "当前门板数据数量行数为:" + ((DataTable)dgDoorBan.DataSource).Rows.Count.ToString();
     }
 }