private void onExportToCSVtCommand() { //Get Save File Location this.saveFileDialog.ShowDialog(); this.saveFileFullPath = saveFileDialog.FileName; //Change ObservableCollection to list this.listEventLog = new List <EventLog>(this.ListEventLog); //Generate CSV File if (ExportToCSV.CreateCSVFromGenericList(listEventLog, this.saveFileFullPath)) { MessageBox.Show("Saving Complete @ " + this.saveFileFullPath.ToString(), "Saved Location", MessageBoxButton.OK, MessageBoxImage.Information); } this.listEventLog = null; }