protected void SetConnState(DataAccess.ConnState connState) { this.myStatusImage = (connState == DataAccess.ConnState.Connected ? Properties.Resources.connected : Properties.Resources.disconnected); this.myStatusToolTipText = (connState == DataAccess.ConnState.Connected ? Languages.Libs.GetString("connected") : Languages.Libs.GetString("noConnection")); DataAccess.Libs.myConnState = connState; }
protected void OnDataAccessConnStateChanged(DataAccess.ConnState connState) { SetConnState(connState); }