private void _loadProject(baseProduct.layoutProjectType projectType) { switch (projectType) { case baseProduct.layoutProjectType.Album: this._product = new albumProduct(this); break; case baseProduct.layoutProjectType.Mat: break; case baseProduct.layoutProjectType.Product: break; default: break; } }
private void albumToolStripMenuItem_Click(object sender, EventArgs e) { albumProductSaveClass apsc = new albumProductSaveClass(); var openedClass = openProduct(apsc); if (openedClass != null) { apsc = (albumProductSaveClass)openedClass; this._product = new albumProduct(this,apsc); } }