private UIButton AddButton(string label, UIAlertButtons type) { var btn = new UIButton(); btn.Caption = label; btn.Width = 100; btn.OnButtonClick += new ButtonClickDelegate(btn_OnButtonClick); ButtonMap.Add(btn, type); this.Add(btn); return(btn); }
/// <summary> /// Adds a button to this message box. /// </summary> /// <param name="label">Label of the button.</param> /// <param name="type">Type of the button to be added.</param> /// <param name="InternalHandler">Should the button's click be handled internally?</param> /// <returns></returns> private UIButton AddButton(string label, UIAlertButtons type, bool InternalHandler) { var btn = new UIButton(); btn.Caption = label; btn.Width = 100; if (InternalHandler) { btn.OnButtonClick += new ButtonClickDelegate(btn_OnButtonClick); } ButtonMap.Add(type, btn); this.Add(btn); return(btn); }
private UIButton AddButton(string label, UIAlertButtons type) { var btn = new UIButton(); btn.Caption = label; btn.Width = 100; btn.OnButtonClick += new ButtonClickDelegate(btn_OnButtonClick); ButtonMap.Add(btn, type); this.Add(btn); return btn; }
/// <summary> /// Adds a button to this message box. /// </summary> /// <param name="label">Label of the button.</param> /// <param name="type">Type of the button to be added.</param> /// <param name="InternalHandler">Should the button's click be handled internally?</param> /// <returns></returns> private UIButton AddButton(string label, UIAlertButtons type, bool InternalHandler) { var btn = new UIButton(); btn.Caption = label; btn.Width = 100; if(InternalHandler) btn.OnButtonClick += new ButtonClickDelegate(btn_OnButtonClick); ButtonMap.Add(type, btn); this.Add(btn); return btn; }