DCT.UI.CoreUI.SecondsUntilHour C# (CSharp) Method

SecondsUntilHour() private method

private SecondsUntilHour ( ) : int
return int
        internal int SecondsUntilHour()
        {
            return (61 - DateTime.Now.Minute) * 60;
        }

Usage Example

Example #1
0
        private void chkHourTimer_CheckedChanged(object sender, EventArgs e)
        {
            bool b = chkHourTimer.Checked;

            if (b)
            {
                if (mUI.CountdownTimer != null)
                {
                    mUI.CountdownTimer.CurrentCountdown = mUI.SecondsUntilHour();
                }
                chkCountdownTimer.Checked = mUI.Settings.UseCountdownTimer = false;
            }
            mUI.Settings.UseHourTimer = b;
        }
CoreUI