AnimeDownloader.MainForm.SecondTimer C# (CSharp) Method

SecondTimer() private method

private SecondTimer ( object obj ) : void
obj object
return void
        private async void SecondTimer(object obj)
        {
            SecondCount--;
            if ((SecondCount < 60) && (SecondCount>0))
            {
                string text = SecondCount+" "+(SecondCount == 1 ? "second" : "seconds");
                await WrapGuiAction(() => labUpdateTime.Text = text);
            }
            else if (SecondCount>=60)
            {
                int val = (SecondCount+30)/60;
                string text = val + " " + (val == 1 ? "minute" : "minutes");
                await WrapGuiAction(() => labUpdateTime.Text = text);
            }
            else
            {
                secondtimer.Dispose();
                secondtimer = null;
                await RefreshUpdates();
            }
        }
        private void numMinutes_ValueChanged(object sender, EventArgs e)