RatioMaster_source.RM.updateInterval C# (CSharp) Method

updateInterval() private method

private updateInterval ( string param ) : void
param string
return void
        internal void updateInterval(string param)
        {
            if (interval.InvokeRequired)
            {
                SetIntervalCallback del = updateInterval;
                Invoke(del, new object[] { param });
            }
            else
            {
                if (updateProcessStarted)
                {
                    int temp;
                    bool bParse = int.TryParse(param, out temp);
                    if (bParse)
                    {
                        if (temp > 3600) temp = 3600;
                        if (temp < 60) temp = 60;
                        currentTorrent.interval = temp;
                        AddLogLine("Updating Interval: " + temp);
                        interval.ReadOnly = false;
                        interval.Text = temp.ToString();
                        interval.ReadOnly = true;
                    }
                }
            }
        }