Exemple #1
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Creator_File creator  = new CreateProductOpenFile();
            Product_File openFile = creator.FactoryMethod();

            openFile.initTool("Открыть картинку", true);
            openFile.workWithFile(shapesList, ref displayManager, ref nameWorkFile, addinTypes);
        }
Exemple #2
0
        private void saveAsКакToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Creator_File creator  = new CreateProductSaveFile();
            Product_File saveFile = creator.FactoryMethod();

            saveFile.initTool("Сохранить картинку как...", true);
            saveFile.workWithFile(shapesList, ref displayManager, ref nameWorkFile, addinTypes);
        }