AcManager.Controls.Presentation.AppAppearanceManager.ThemeLink.Update C# (CSharp) Method

Update() public method

public Update ( ) : bool
return bool
            public bool Update() {
                if (_filename == null) return false;

                var fileInfo = new FileInfo(_filename);
                if (!fileInfo.Exists) return false;

                try {
                    var modified = fileInfo.LastWriteTime;
                    if (modified > _modified) {
                        AppearanceManager.Current.ThemeSource = Source;
                        _modified = modified;
                    }

                    Instance.ThemeError = null;
                    return true;
                } catch (Exception e) {
                    Logging.Warning(e);
                    Instance.ThemeError = e.Message;
                    return false;
                }
            }
        }
AppAppearanceManager.ThemeLink