private void backTSMI_Click(object sender, EventArgs e)
 {
     OpenFileDialog ofd = new OpenFileDialog();
     ofd.Filter = "Background Files (.ned)|*.ned";
     if(ofd.ShowDialog() == DialogResult.OK)
     {
         try
         {
             canvas = new NEBackground(ofd.FileName);
         }
         catch
         {
             MessageBox.Show("Не вдалося відкрити файл. Схоже, що файл редагувавя ззовні.","ПОПЕРЕДЖЕННЯ");
         }
         g.Clear(Color.White);
         Draw();
     }
     ofd.Dispose();
 }
 private void LaceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CanvasRedactor Redactor = new CanvasRedactor();
     if (Redactor.ShowDialog() == DialogResult.OK)
     {
         canvas = Redactor.Background;
         drawingPanel.Width = canvas.Width;
         drawingPanel.Height = canvas.Height;
         g = drawingPanel.CreateGraphics();
         DrawCanvas();
     }
     points = new List<Point>();
 }