private List <PlantTypeDTO> GetPlantTypes() { MainWindow wnd = Application.Current.MainWindow as MainWindow; return(wnd.GetPlantTypes()); }