Пример #1
0
        private void toolStripButtonAdd_Click(object sender, EventArgs e)//新增
        {
            DeviceInfo_AddWnd ks = new DeviceInfo_AddWnd(null, true);

            if (ks.ShowDialog() == DialogResult.OK)
            {
                ShowInfo("");
            }
        }
Пример #2
0
        private void toolStripButtonEdit_Click(object sender, EventArgs e)//修改
        {
            DataGridViewRow row = this.dataGView_Main.CurrentRow;

            if (row != null)
            {
                DeviceInfo_AddWnd ks = new DeviceInfo_AddWnd(row, false);
                ks.ShowDialog();
            }
            else
            {
                MessageBox.Show("请选择要编辑的请购信息");
            }
        }