AcManager.Controls.Helpers.FancyBackgroundManager.ChangeBackground C# (CSharp) 메소드

ChangeBackground() 공개 메소드

public ChangeBackground ( [ filename ) : void
filename [
리턴 void
        public void ChangeBackground([CanBeNull] string filename) {
            if (filename == null) return;
            _queue.Enqueue(filename);

            if (_timer != null) return;
            _timer = new DispatcherTimer(DispatcherPriority.Background) {
                Interval = TimeSpan.FromSeconds(1),
                IsEnabled = true
            };
            _timer.Tick += Timer_Tick;
        }