Пример #1
0
 /// <summary>
 /// Show a simple modal
 /// </summary>
 private void ShowModal()
 {
     ModalManager.Show("Modal Title", "Show your message here", new[] { new ModalButton()
                                                                        {
                                                                            Text = "OK"
                                                                        } });
 }
Пример #2
0
 /// <summary>
 /// Shows a modal with callback
 /// </summary>
 private void ShowModalWithCallback()
 {
     ModalManager.Show("Change Background Color", "Change background color to a random color",
                       new[] { new ModalButton()
                               {
                                   Text = "YES", Callback = ChangeColor
                               }, new ModalButton()
                               {
                                   Text = "NO"
                               } });
 }