示例#1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            FrmAddCustom frm = new FrmAddCustom(null, null, null);

            frm.ShowDialog();

            /*string path="c:/ee.xls";    //测试
             * DAL.ExcelIO excel=new DAL.ExcelIO() ;
             * DataTable dsLog = excel.ImportExcel(path);
             * this.dataGridView_Book.DataSource = dsLog.DefaultView;*/
        }
示例#2
0
 private void Btn_Update_Click(object sender, EventArgs e)
 {
     if (((System.Windows.Forms.BaseCollection)(dataGridView_Book.SelectedRows)).Count != 1)
     {
         MessageBox.Show("请选择一条数据", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
     else
     {
         String       barcode    = this.dataGridView_Book.CurrentRow.Cells[0].Value.ToString();
         FrmAddCustom frmAddBook = new FrmAddCustom("update", barcode, this);
         frmAddBook.ShowDialog();
     }
 }
示例#3
0
        private void ToolStripMenuItem_AddCustom_Click(object sender, EventArgs e)
        {
            FrmAddCustom frm = new FrmAddCustom(null, null, null);

            frm.ShowDialog();
        }