private void m_pViewStyle_StyleChanged(object sender, ViewStyle_EventArgs e) { if (m_pViewStyle != null) { this.BackColor = m_pViewStyle.ControlBackColor; } }
/// <summary> /// /// </summary> /// <param name="propertyName"></param> /// <param name="popertyValue"></param> protected void OnStyleChanged(string propertyName, object popertyValue) { // Raises the event; ViewStyle_EventArgs oArg = new ViewStyle_EventArgs(propertyName, popertyValue); if (this.StyleChanged != null) { this.StyleChanged(this, oArg); } }
protected void OnStyleChanged(string propertyName,object popertyValue) { // Raises the event; ViewStyle_EventArgs oArg = new ViewStyle_EventArgs(propertyName,popertyValue); if(this.StyleChanged != null){ this.StyleChanged(this, oArg); } }