public static SearchAndReplaceHistory LoadWorkspaceFrom(string fileName)
        {
            SearchAndReplaceHistory result = null;

            if (!File.Exists(fileName))
            {
                Hist = new SearchAndReplaceHistory();
                return(Hist);
            }

            result = ObjectXMLSerializer <SearchAndReplaceHistory> .Load(fileName);

            if (result == null)
            {
                result = new SearchAndReplaceHistory();
            }
            Hist = result;
            return(result);
        }
 public static void SaveAsDefault(SearchAndReplaceHistory hist)
 {
     SaveHistAs(hist, _defaultFileName);
 }
 public static void SaveHistAs(SearchAndReplaceHistory hist, string fileName)
 {
     ObjectXMLSerializer <SearchAndReplaceHistory> .Save(hist, fileName);
 }