public bool Save() { if (File.Exists(FilePath)) { try { File.Delete(FilePath); } catch { return(false); } } File.WriteAllLines(FilePath, WhiteList.ToArray(typeof(String)) as String[]); return(true); }