Exemplo n.º 1
0
 /// <summary>
 /// Set a button to have Cancel icon and behavior.
 /// </summary>
 public void SetButtonToCancel(CCButton button)
 {
     button.Text = "Cancel";
     //ref icon: http://www.openclipart.org/detail/19676
     button.SetIcon("Icons/Cancel.png");
     button.actionEvent += new CCButton.actionEventHandler(closeBtn_actionEvent);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set a button's icon to the Apply icon.  You must implement the behavior yourself.
 /// </summary>
 public void SetButtonIconToApply(CCButton button)
 {
     button.Text = "Apply";
     //ref icon: http://www.openclipart.org/detail/26557
     button.SetIcon("Icons/Apply.png");
 }