public void Add(ISecurity data) { using (var file = SecurityFile.CreateOrOpen()) { SecurityItem dataItem = data.Convert(); file.Add(dataItem); } }