private void LocationListView_Load(object sender, EventArgs e) { // Bind the storage types StorageType storageType = new StorageType(); storageType.LoadAll(); lkStorageType.Properties.DataSource = storageType.DefaultView; lkStorageType.ItemIndex = 0; }
private void LocationReports_Load(object sender, EventArgs e) { StorageType stt = new StorageType(); stt.LoadAll(); lkStorageType.Properties.DataSource = stt.DefaultView; lkStorageType2.Properties.DataSource = stt.DefaultView; lkStorageType.ItemIndex = 0; lkStorageType2.EditValue = 1; }