private void Save() { VendorData = vendorData.ItemsSource as List <npc_vendor>; if (VendorData == null || VendorEntry == 0) { return; } WorldWorker.SaveNpcVendor(VendorData, VendorEntry); }