示例#1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            //显示添加书本窗体
            Booksadd add = new Booksadd();

            add.Show();
        }
示例#2
0
        private void 商品进货ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //new一个添加书本对象
            Booksadd Add = new Booksadd();

            //显示窗体
            Add.Show();
        }
示例#3
0
        private void btn_jinhuo_Click(object sender, EventArgs e)
        {
            DataTable type = TypeBLL.selecttype();

            if (type.Rows.Count != 0)
            {
                //new一个添加书本对象
                Booksadd Add = new Booksadd();
                //显示窗体
                Add.Show();
            }
            else
            {
                MessageBox.Show("请先去添加书本类型", "温馨提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }