コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            orderUserControl1 o = new orderUserControl1(form);
            facade            concreteFacade = new facade(new manfacture(), form);

            concreteFacade.SendNotification(new meal(), o, notificationUserControl1.N++);
        }
コード例 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            size     = comboBox8.Text;
            quantity = numericUpDown8.Value;
            orderUserControl1 o = new orderUserControl1(form);
            facade            concreteFacade = new facade(new manfacture(), form);

            concreteFacade.SendNotification(new beverge2(), o, notificationUserControl1.N++, size, quantity);
        }