Open.Core.Controls.Buttons.ButtonView.DownloadTemplates C# (CSharp) Метод

DownloadTemplates() защищенный Метод

Downloads the set of required templates that were added via the 'AddRequiredTemplate' method.
protected DownloadTemplates ( System.Action onComplete ) : void
onComplete System.Action Action which is invoked when the templates have completed downloading.
Результат void
        protected void DownloadTemplates(Action onComplete)
        {
            if (templateLoader == null)
            {
                Helper.Invoke(onComplete);
                return;
            }
            templateLoader.LoadComplete += delegate
                                               {
                                                   Helper.Invoke(onComplete);
                                                   templateLoader = null;
                                               };
            templateLoader.Start();
        }
        #endregion