public void UpdateGameDialog(GameDialogSettings settings) { if (InvokeRequired) { Invoke(UpdateDialog, new object[] { settings }); } else { GameDialog.Settings = settings; GameDialog.LoadSettings(); } }
public void UpdateGameDialog(string titleSuccess, string titleError, string content, Action success, Action error, bool result, ContentAlignment alignment = ContentAlignment.MiddleCenter) { var settings = new GameDialogSettings() { Title = result ? titleSuccess : titleError, Content = content, Alignment = alignment, OnDisplay = () => QueueAction(success), OnClose = () => QueueAction(error) }; UpdateGameDialog(settings); }