Exemplo n.º 1
0
        private void Save_Click(object sender, EventArgs e)
        {
            saveFileDialog1 = UI.CreateSaveFileDialog();

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                CircleBL.SerializeList(circles, saveFileDialog1.FileName);
            }
        }
Exemplo n.º 2
0
 private void Open_Click(object sender, EventArgs e)
 {
     openFileDialog1 = UI.CreateOpenFileDialog();
     if (openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Reset();
         circles = CircleBL.DeserializeList(openFileDialog1.FileName);
         Graphic.Redraw(panelForPainting, graphics, circles);
     }
 }