public static StorageItemRow NewRowDefault() { if (defaultStorageItemDT == null) { defaultStorageItemDT = new StorageItemDT(); MyDbConnection.Instance.FillDataTable(defaultStorageItemDT, "SELECT * FROM [StorageItem] WHERE 1 > 1"); } return((StorageItemRow)defaultStorageItemDT.NewRow()); }
public static StorageItemDT GetDefaultStorageItemDT() { if (defaultStorageItemDT == null) { defaultStorageItemDT = new StorageItemDT(); MyDbConnection.Instance.FillDataTable(defaultStorageItemDT, "SELECT * FROM [StorageItem] WHERE 1 > 1"); } return(defaultStorageItemDT); }