Example #1
0
        /// <summary>
        /// Map 생성 버튼
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InputMapBtn_Click(object sender, EventArgs e)
        {
            MapLoadDialog MapLoader = new MapLoadDialog();

            var Result = MapLoader.ShowDialog();

            if (Result == DialogResult.OK)
            {
                //Map Size Load
                MapSizeLoad(MapLoader.XMax, MapLoader.YMax);
                //HazardList 추가
                AddLoadedHazard(MapLoader.LoadedHazardList);

                //SpotList 추가
                AddSearchSpotList(MapLoader.LoadedSearchSpotList);

                string path = MapLoader.ImageFile;
                MapMiniView.Load(@path);
                MapMiniView.SizeMode = PictureBoxSizeMode.StretchImage;


                GraphicManager.GetManager().MapLoad(MapLoader.XMax, MapLoader.YMax);
            }
        }
        /// <summary>
        /// Map 생성 버튼
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InputMapBtn_Click(object sender, EventArgs e)
        {
            MapLoadDialog MapLoader = new MapLoadDialog();

            var Result =  MapLoader.ShowDialog();
            if (Result == DialogResult.OK)
            {
                //Map Size Load
                MapSizeLoad(MapLoader.XMax, MapLoader.YMax);
                //HazardList 추가
                AddLoadedHazard(MapLoader.LoadedHazardList);

                //SpotList 추가
                AddSearchSpotList(MapLoader.LoadedSearchSpotList);

                string path = MapLoader.ImageFile;
                MapMiniView.Load(@path);
                MapMiniView.SizeMode = PictureBoxSizeMode.StretchImage;

                GraphicManager.GetManager().MapLoad(MapLoader.XMax , MapLoader.YMax);
            }
        }