Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaperPlaneTools.AlertIOSButton"/> class.
 /// </summary>
 /// <param name="whichButton">Button type</param>
 /// <param name="title">Button title</param>
 /// <param name="handler">OnClick callback</param>
 /// <param name="isPreferable">If <c>true</c>, title will be bold</param>
 public AlertIOSButton(AlertIOSButton.Type whichButton, string title, Action handler, bool isPreferable)
 {
     WhichButton  = whichButton;
     Title        = title;
     Handler      = handler;
     IsPreferable = isPreferable;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a button
 /// </summary>
 /// <param name="whichButton">Button.</param>
 /// <param name="title">Title</param>
 /// <param name="handler">Callback</param>
 /// <param name="isPreferable">If set to <c>true</c> title will be bold.</param>
 public void AddButton(AlertIOSButton.Type whichButton, string title, Action handler, bool isPreferable)
 {
     buttons.Add(new AlertIOSButton(whichButton, title, handler, isPreferable));
 }