Ejemplo n.º 1
0
 /// <summary>
 /// 设置btns数组下对应按钮属性
 /// </summary>
 /// <param name="buttonObject">btns数组中对应的按钮(如果buttonObject不存在于btns数组中,不会进行任何操作)</param>
 public void SetButton(IMCButton buttonObject, MessageBoxButtonAttribute buttonAttribute)
 {
     if (btns.Contains(buttonObject))
     {
         MSetButton(buttonObject, buttonAttribute.buttonTitle, buttonAttribute.buttonSprite, buttonAttribute.buttonAction);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 设置btns数组下对应按钮属性
 /// </summary>
 /// <param name="buttonIndex">按钮所在btns数组中的索引查找对应的按钮(如果索引值非法,不会进行任何操作)</param>
 public void SetButton(int buttonIndex, MessageBoxButtonAttribute buttonAttribute)
 {
     if (buttonIndex >= 0 && buttonIndex <= btns.Count - 1)
     {
         MSetButton(btns[buttonIndex], buttonAttribute.buttonTitle, buttonAttribute.buttonSprite, buttonAttribute.buttonAction);
     }
 }