コード例 #1
0
 private void initButton(SimpleButton button, ApplicationIcon icon, Func <string, string> hint)
 {
     button.InitWithImage(icon, imageLocation: ImageLocation.MiddleCenter, toolTip: hint(PKSimConstants.ObjectTypes.Compound));
 }
コード例 #2
0
 public static SimpleButton InitWithImage(this SimpleButton button, ApplicationIcon applicationIcon, string text = null, ImageLocation imageLocation = ImageLocation.MiddleLeft, string toolTip = null)
 {
     return(button.InitWithImage(applicationIcon, IconSizes.Size16x16, text: text, imageLocation: imageLocation, toolTip: toolTip));
 }