public override bool Equals(object obj) { if (this == obj) { return(true); } else if (!(obj is ExternalRenderTheme)) { return(false); } ExternalRenderTheme other = (ExternalRenderTheme)obj; if (this.lastModifiedTime != other.lastModifiedTime) { return(false); } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return(false); } } else if (!this.renderThemeFile.Equals(other.renderThemeFile)) { return(false); } return(true); }
/// <summary> /// Create external render theme async /// </summary> /// <param name="renderThemeFile"></param> /// <param name="menuCallback"></param> /// <returns></returns> public static ExternalRenderTheme CreateExternalRenderTheme(string renderThemeFilePath, XmlRenderThemeMenuCallback menuCallback = null) { var externalRenderTheme = new ExternalRenderTheme(); externalRenderTheme.Initialize(renderThemeFilePath, menuCallback); return(externalRenderTheme); }