private void ReceiveExcelFileCommand(ExcelFileCommandMessage fileCommand) { switch (fileCommand.Command) { case TreeNodeCommand.Add: var sheets = ApplicationCommands.RetreiveSheets(fileCommand.FullPath); // Add to Project _content.ExcelFiles.Add(new ExcelFileData() { ExcelFileFullPath = fileCommand.FullPath, Sheets = sheets.Select(s => new SheetData() { SheetName = s, ClassName = string.Empty }).ToList() }); // Update TreeView TreeData = ConvertFromProjectToGroups(); break; } }