protected void OnStyleChanged(Enums.eCtrlProperty propertyName, object propertyValue) { CtrlStyle_EventArgs oArg = new CtrlStyle_EventArgs(propertyName, propertyValue); SetSaveFlag(propertyName); if (StyleChangedEvent != null) { StyleChangedEvent(this, oArg); } }
public void SetSaveFlag(Enums.eCtrlProperty eSender, bool bSaveFlag) { try { IsSaveFlag = bSaveFlag; } catch (Exception ex) { MessageBox.Show(ex.Message, "clsCtrlStatus.SetSaveFlag()", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void SetSaveFlag(Enums.eCtrlProperty eSender) { try { switch (eSender) { case Enums.eCtrlProperty.PROP_ISNOEVENT: break; case Enums.eCtrlProperty.PROP_ISPROCESSMODE: break; case Enums.eCtrlProperty.PROP_ISUSEEVENTCOLOR: break; case Enums.eCtrlProperty.PROP_FACTORY: break; case Enums.eCtrlProperty.PROP_ISUSERGROUPDESIGN: break; case Enums.eCtrlProperty.PROP_ISDELETERES: break; case Enums.eCtrlProperty.PROP_KEY: break; case Enums.eCtrlProperty.PROP_SIZE: IsSaveFlag = true; break; case Enums.eCtrlProperty.PROP_LOCATION: IsSaveFlag = true; break; case Enums.eCtrlProperty.PROP_TOOLTYPE: break; case Enums.eCtrlProperty.PROP_RESTAGFLAG: break; case Enums.eCtrlProperty.PROP_TEXT: break; case Enums.eCtrlProperty.PROP_TEXTCOLOR: break; case Enums.eCtrlProperty.PROP_TEXTSIZE: break; case Enums.eCtrlProperty.PROP_TEXTSTYLE: break; case Enums.eCtrlProperty.PROP_TEXTFONTNAME: break; case Enums.eCtrlProperty.PROP_PRIMARYSTATUS: break; case Enums.eCtrlProperty.PROP_UPDOWNFLAG: break; case Enums.eCtrlProperty.PROP_RESOURCETYPE: break; case Enums.eCtrlProperty.PROP_LASTEVENT: break; case Enums.eCtrlProperty.PROP_PROCMODE: break; case Enums.eCtrlProperty.PROP_CTRLMODE: break; case Enums.eCtrlProperty.PROP_BACKCOLOR: break; case Enums.eCtrlProperty.PROP_BACKHOTCOLOR: break; case Enums.eCtrlProperty.PROP_BACKPRESSEDCOLOR: break; case Enums.eCtrlProperty.PROP_BOARDERCOLOR: break; case Enums.eCtrlProperty.PROP_BOARDERHOTCOLOR: break; case Enums.eCtrlProperty.PROP_BOARDERPRESSEDCOLOR: break; case Enums.eCtrlProperty.PROP_EVENTBACKCOLOR: break; case Enums.eCtrlProperty.PROP_EVENTBACKHOTCOLOR: break; case Enums.eCtrlProperty.PROP_EVENTBACKPRESSEDCOLOR: break; case Enums.eCtrlProperty.PROP_IMAGEINDEX: break; case Enums.eCtrlProperty.PROP_ISVIEWSIGNAL: break; case Enums.eCtrlProperty.PROP_ZOOMSCALE: break; case Enums.eCtrlProperty.PROP_TOOLTIPCOMMENT: break; case Enums.eCtrlProperty.PROP_SIGNALCOLOR: break; case Enums.eCtrlProperty.PROP_AREAID: break; case Enums.eCtrlProperty.PROP_SUBAREAID: break; } } catch (Exception ex) { MessageBox.Show(ex.Message, "clsCtrlStatus.SetSaveFlag()", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public CtrlStyle_EventArgs(Enums.eCtrlProperty propertyName, object propertyValue) { m_ePropertyName = propertyName; m_oPropertyValue = propertyValue; }