public List <VendorDTO> GetVendors() { MainWindow wnd = Application.Current.MainWindow as MainWindow; return(wnd.GetVendors()); }