Exemple #1
0
        private void btn_modify_Click(object sender, EventArgs e)
        {
            FormModifyandAdd modifyForm = new FormModifyandAdd();

            modifyForm.modifyInfo();
            modifyForm.ShowDialog();
        }
Exemple #2
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            String   info     = Interaction.InputBox("请输入顾客姓名", "输入字符串", "", 100, 100);
            Customer customer = new Customer(customerID++, info);

            order = new Order(ID++, customer, DateTime.Now);
            FormModifyandAdd formAdd = new FormModifyandAdd();

            formAdd.addInfo(order);
            Service.AddOrder(order);
            formAdd.ShowDialog();
        }