Exemplo n.º 1
0
 public void UpdateGameDialog(GameDialogSettings settings)
 {
     if (InvokeRequired)
     {
         Invoke(UpdateDialog, new object[] { settings });
     }
     else
     {
         GameDialog.Settings = settings;
         GameDialog.LoadSettings();
     }
 }
Exemplo n.º 2
0
        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);
        }