コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            SaveLocationControl.Callback p = new SaveLocationControl.Callback(CallbackMsg);


            if (saveLocationForm != null)
            {
                AppSettings.Instance.Config.LoadWithZoom = saveLocationForm.WithZoom();
                saveLocationForm.Close();
                saveLocationForm = null;
            }
            saveLocationForm = new SaveLocationForm(m_historyFileName, AppSettings.Instance.Config.LoadWithZoom);
            saveLocationForm.LoadHistory(mapControl1.HistoryBlocks, p);
            saveLocationForm.ShowDialog();
            if (saveLocationForm != null)
            {
                mapControl1.SetHistory(saveLocationForm.GetHistory());
            }
            return;
        }
コード例 #2
0
 public void LoadHistory(Dictionary <string, TileBlock> HistoryBlocks, SaveLocationControl.Callback p)
 {
     pCallback       = p;
     m_historyBlocks = HistoryBlocks;
     LoadHistory();
 }