public DialogResult ShowDialog() { var result = _dialog.ShowDialog(); if (result == DialogResult.OK) { ActionLoadMap = new ActionLoadMap(_dialog.FileName); ActionLoadMap.Executar(); if (!File.Exists(_dialog.FileName)) { return(DialogResult.Cancel); } } return(result); }
public MainGame() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; _loadMap = new ActionLoadMap("map/map"); }