private void добавитьЗаписьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Program.road = new RObj();
            AddR add = new AddR();

            add.Show();
            this.Close();
        }
        private void AddElem_Click(object sender, EventArgs e)
        {
            Program.road = new RObj();
            AddR add = new AddR();

            add.Show();
            this.Close();
        }
 private void Close_Click(object sender, EventArgs e)
 {
     MapMain.Refresh();
     Program.ReSetCurrentMap();
     graphics = Graphics.FromImage(Program.CurrentMap);
     MapMain.Image = Program.CurrentMap;
     AddR add = new AddR();
     add.Show();
     this.Close();
 }