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));
                }
            }
        }
Exemple #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));
     }
 }