public void SaveFile(string filePath, AllowedFileFormat format) { switch (format) { case AllowedFileFormat.Json: SaveJsonFile(filePath); break; case AllowedFileFormat.Text: SaveTextFile(filePath); break; default: break; } }
public void LoadFile(string filePath, AllowedFileFormat format) { _sets.Clear(); switch (format) { case AllowedFileFormat.Json: LoadJsonFile(filePath); break; case AllowedFileFormat.Text: LoadTextFile(filePath); break; default: break; } }