protected virtual void OnRedOwnershipSecondsUpdated(RedOwnershipSecondsUpdatedEventArgs e) { EventHandler <RedOwnershipSecondsUpdatedEventArgs> handler = RedOwnershipSecondsUpdated; if (handler != null) { handler(this, e); } }
private void SumRedOwnershipSeconds() { int tempSeconds = Convert.ToInt32(_redSwitchOwnershipDeciseconds * 0.1) + Convert.ToInt32(_redScaleOwnershipDeciseconds * 0.1) + RedVaultScore + RedAutorunScore + RedParkScore + RedClimbScore; if (tempSeconds != _redOwnershipSeconds) { _redOwnershipSeconds = tempSeconds; RedOwnershipSecondsUpdatedEventArgs e = new RedOwnershipSecondsUpdatedEventArgs { RedOwnershipSeconds = _redOwnershipSeconds }; OnRedOwnershipSecondsUpdated(e); } }