private void HandleNewWorldDialog(ShowNewWorldDialogMessage message) { var dialog = new NewWorldDialog(); dialog.Owner = this; if (dialog.ShowDialog() == true) { message.Callback(new ShowNewWorldDialogMessage.Params(dialog.MapWidth, dialog.MapHeight)); } }
private void HandleCreateNewWorld() { var msg = new ShowNewWorldDialogMessage((param) => { CreateNewWorld(param.Width, param.Height); }); this.MessengerInstance.Send(msg); }