Esempio n. 1
0
    public Product_A_Obj A_Order()
    {
        Product_A_Obj A = new Product_A_Obj();

        A.Action1();
        A.Action2();
        A.Action3();
        return(A);
    }
Esempio n. 2
0
    public IFactory CreatProduct(string product)
    {
        IFactory f;

        if (product == "A")
        {
            return(f = new Product_A_Obj());
        }
        else if (product == "B")
        {
            return(f = new Product_B_Obj());
        }

        return(null);
    }