Ejemplo n.º 1
0
        public override void printProperties()
        {
            MusicCDForm music = new MusicCDForm(this);

            music.ShowDialog();
            music.Dispose();
        }
        static Form ProductFormCreate(Product product)
        {
            Form form = null;

            if (product is Book)
            {
                form = new BookForm((Book)product);
            }
            else if (product is Magazine)
            {
                form = new MagazineForm((Magazine)product);
            }
            else if (product is MusicCD)
            {
                form = new MusicCDForm((MusicCD)product);
            }
            return(form);
        }