private bool TryLoadLayuotFromFile(string FileNameSuffix = "") { // check if connected to host if ( ReferenceEquals(base.DataSource, null) || ReferenceEquals(null, _editorsHost) || LayoutBaseFileName.Length == 0 || !SPersistenceManager.getInstance().IsAllowed_LoadLayoutFromXml) { return(false); } string filePath = string.Format("{0}/{1}{2}.xml", _editorsHost.LayoutAssetsPath, LayoutBaseFileName, FileNameSuffix); if (File.Exists(filePath)) { _cnt.RestoreLayoutFromXml(filePath); //test for resising foont. Approz work, but not resize crid font //SetFontSize(_cnt, 10); return(true); } _logger.Info("Missing layout file: " + filePath); return(false); }