예제 #1
0
        private void mnuFileLoad_Click(object sender, EventArgs e)
        {
            var form = new LoadMapForm();

            if (form.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(form.MapName))
            {
                if (_loadMap != null)
                {
                    _loadMap(this, new MapNameEventArgs(form.MapName));
                }
            }
        }
예제 #2
0
 private void mnuFileLoad_Click(object sender, EventArgs e)
 {
     var form = new LoadMapForm();
     if (form.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(form.MapName))
     {
         if(_loadMap != null)
             _loadMap(this, new MapNameEventArgs(form.MapName));
     }
 }