Autorefresh.FormAutoRefresh.InitializeTimer C# (CSharp) 메소드

InitializeTimer() 개인적인 메소드

private InitializeTimer ( ) : void
리턴 void
		private void InitializeTimer()
		{
			///Obtaint or to défine the time by millisecondes
			////// <summary>
			/// Obtaint or to défine the time by millisecondes
			/// </summary>
			if (this.IntervalMinute.SelectedIndex != -1 && this.IntervalSecond.SelectedIndex != -1)
			{
				int time = (this.IntervalMinute.SelectedIndex * 60000) + (this.IntervalSecond.SelectedIndex * 1000);
				if (time > 0)
					timerAutoRefresh.Interval = time;
				else
					timerAutoRefresh.Stop();
			}
		}