private void Close_Click(object sender, EventArgs e)
        {
            MapMain.Refresh();
            Program.ReSetCurrentMap();
            graphics      = Graphics.FromImage(Program.CurrentMap);
            MapMain.Image = Program.CurrentMap;
            ChangeRCon con = new ChangeRCon();

            con.Show();
            this.Close();
        }
Beispiel #2
0
        private void Change_Click(object sender, EventArgs e)
        {
            var rows = Program.CurrentOpertedDataBase.Tables[1].Select("[" + RFilter.Text + "] = '" + Input.Text + "'");

            if (rows.Length == 0)
            {
                MessageBox.Show("Ни одного подходящего элемента найдено не было", "Изменение", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                var      row = rows[0];
                PixelMap map = Program.MapPositionR[Convert.ToInt32(row[0])];
                ClearObject(map);
                Program.road    = new RObj();
                Program.road.Id = Convert.ToInt32(row[0]);
                ChangeRCon con = new ChangeRCon();
                con.Show();
                this.Close();
            }
        }