private void RaiseNewProfileEvent(bool aReadSuccess, int aNumStations) { NewProfileEventArgs args = new NewProfileEventArgs(); args.ReadSuccess = aReadSuccess; args.numStations = aNumStations; OnNewProfileRead(args); }
protected virtual void OnNewProfileRead(NewProfileEventArgs e) { EventHandler <NewProfileEventArgs> handler = NewProfileDataRead; if (handler != null) { handler(this, e); } }