AdvancedLauncher.UI.Controls.DigiRotation.IsLoadingAnim C# (CSharp) Method

IsLoadingAnim() private method

private IsLoadingAnim ( bool state, bool transition = false ) : void
state bool
transition bool
return void
        private void IsLoadingAnim(bool state, bool transition = false)
        {
            this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(delegate () {
                loader.IsEnabled = state;
                if (state) {
                    loader.SetBinding(HaguruLoader.TitleProperty, LoadingTitleBinding);
                    loader.SetBinding(HaguruLoader.SummaryProperty, LoadingSummaryBinding);
                    loader.Value = 0;
                    if (transition) {
                        this.Content = loader;
                    }
                }
            }));
        }