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++); }
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); }
static void Main(string[] args) { facade tamb = new facade(); template tambugdaylı = new tambuğday(); tambugdaylı.build(); tamb.facade3(); template cavdarlı = new çavdar(); cavdarlı.build(); tamb.facade1(); template kepekli = new kepekli(); kepekli.build(); tamb.facade2(); }