Example #1
0
        private void btPrototypePattern_Click(object sender, EventArgs e)
        {
            string str = "";

            ShapeCache.loadCache();

            PrototypePattern.Shape clonedShape = (PrototypePattern.Shape)ShapeCache.getShape("1");
            str += "Shape : " + clonedShape.Type + "\r\n";

            PrototypePattern.Shape clonedShape2 = (PrototypePattern.Shape)ShapeCache.getShape("2");
            str += "Shape : " + clonedShape2.Type + "\r\n";

            PrototypePattern.Shape clonedShape3 = (PrototypePattern.Shape)ShapeCache.getShape("3");
            str += "Shape : " + clonedShape3.Type + "\r\n";
            tbOutWindow.Text = str;
        }