Ejemplo n.º 1
0
        private void loadPictureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter = "Picture files (*.jpg,*.png,*.gif,*.bmp)|*.jpg;*.png;*.gif;*.bmp";

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                AreaMapComponent.SetPicture(openFileDialog1.FileName);

                centerXNUD.Value = (decimal)AreaMapComponent.Center.X;
                centerXNUD.Value = (decimal)AreaMapComponent.Center.X;
            }
        }