コード例 #1
0
        private void CreateMap_Click(object sender, EventArgs e)
        {
            MapBuilderForm mp = new MapBuilderForm(Double.Parse(width.Text), Double.Parse(height.Text));

            mp.Show();
            this.Close();
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         Map            map = Map.Load(openFileDialog1.FileName);
         MapBuilderForm mp  = new MapBuilderForm(map);
         mp.Show();
         this.Close();
     }
 }