Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            shapes.Clear();
            string path = textBox1.Text;
            Filer  f    = new FileFiler(path, 1);

            shapes = g.loadFile(f);
        }
Пример #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            string path = textBox2.Text;
            Filer  f    = new FileFiler(path, 2);

            if (shapes == null)
            {
                return;
            }
            int size = shapes.Count;

            for (int i = 0; i < size; i++)
            {
                shapes[i].Save(f);
            }
            f.closeWR();
        }