Example #1
0
        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));
            }
        }
Example #2
0
        private void HandleCreateNewWorld()
        {
            var msg = new ShowNewWorldDialogMessage((param) => { CreateNewWorld(param.Width, param.Height); });

            this.MessengerInstance.Send(msg);
        }