private void ProduceTablet(AbstractFactory tabletfactory) { formtablet = new FormTablet(tabletfactory.createTablet()); formtablet.Text = tabletfactory.createTablet().GetType().Name; }
private void ProducePhablet(AbstractFactory phabletfactory) { formphablet = new FormPhablet(phabletfactory.createPhablet()); formphablet.Text = phabletfactory.createPhablet().GetType().Name; }
private void ProducePhone(AbstractFactory phonefactory) { formphone = new FormPhone(phonefactory.createPhone()); formphone.Text = phonefactory.createPhone().GetType().Name; }
public Client(AbstractFactory factory) { _abstractProductA = factory.CreateProductA(); _abstractProductB = factory.CreateProductB(); }