public void LeonExportButton_OnClick(object sender, RoutedEventArgs routedEventArgs) { m_exportService = new ExportLeonFormatService(); var readlag = m_databaseService.GetAllFromDatabase(this.m_filePath); var leonLag = m_conv.ConvertToLeonLag(readlag.ToList()); m_exportService.GenerateLeonFormat(leonLag.ToList()); }