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

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

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