void sign_OnButtonGraphicCheckChanged(object sender, ButtonGraphicEventArgs e) { for (int i = 0; i < panelSign.Controls.Count; i++) { SignSettingControl sign = panelSign.Controls[i] as SignSettingControl; if (sign != e.Sign) { sign.ButtonGraphic = false; } } _useButtonGraphic = e.Sign.ButtonGraphic; if (e.Sign.LiveMessage != null) { if (e.Sign.LiveMessage.Target != null && e.Sign.LiveMessage.Image != null) { _buttonImage = e.Sign.LiveMessage.Image; } else { _buttonImage = null; } } else { _buttonImage = null; } rdoSize_SelectedIndexChanged(sender, e); }
private void chkButtonGraphic_CheckedChanged(object sender, System.EventArgs e) { if (OnButtonGraphicCheckChanged != null) { ButtonGraphicEventArgs args = new ButtonGraphicEventArgs(); args.Sign = this; OnButtonGraphicCheckChanged(sender, args); } }