Esempio n. 1
0
        protected virtual void OnBlueOwnershipSecondsUpdated(BlueOwnershipSecondsUpdatedEventArgs e)
        {
            EventHandler <BlueOwnershipSecondsUpdatedEventArgs> handler = BlueOwnershipSecondsUpdated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        private void SumBlueOwnershipSeconds()
        {
            int tempSeconds =
                Convert.ToInt32(_blueSwitchOwnershipDeciseconds * 0.1)
                + Convert.ToInt32(_blueScaleOwnershipDeciseconds * 0.1)
                + BlueVaultScore
                + BlueAutorunScore
                + BlueParkScore
                + BlueClimbScore;

            if (tempSeconds != _blueOwnershipSeconds)
            {
                _blueOwnershipSeconds = tempSeconds;
                BlueOwnershipSecondsUpdatedEventArgs e = new BlueOwnershipSecondsUpdatedEventArgs {
                    BlueOwnershipSeconds = _blueOwnershipSeconds
                };
                OnBlueOwnershipSecondsUpdated(e);
            }
        }