private void ClientHost_MessageBoxRequested(MessageBoxRequestEventArgs args) { logger.Info($"Received message box request with id '{args.RequestId}'."); var result = messageBox.Show(args.Message, args.Title, args.Action, args.Icon); runtime.SubmitMessageBoxResult(args.RequestId, result); logger.Info($"Message box request with id '{args.RequestId}' yielded result '{result}'."); }
private void ClientHost_MessageBoxRequested(MessageBoxRequestEventArgs args) { logger.Info($"Received message box request with id '{args.RequestId}'."); var action = (MessageBoxAction)args.Action; var icon = (MessageBoxIcon)args.Icon; var result = messageBox.Show(args.Message, args.Title, action, icon, parent: splashScreen); runtime.SubmitMessageBoxResult(args.RequestId, (int)result); logger.Info($"Message box request with id '{args.RequestId}' yielded result '{result}'."); }