// Mai 2007 // Affiche les vins non placés et qui ne possedent pas // de fiche achats consos if(App.ActiveCellar == null) { MessageBox.Show("Aucune cave ouverte"); return; } App.SetCursor(true); IWineListWindow listWindow = (IWineListWindow)App.GetWindow(WindowType.WineList); if(listWindow != null) { BindingList list = new BindingList(); ObjectCollection oc = App.ActiveCellar.GetCollection((ushort)ObjectType.Wine); for (int i = 0; i < oc.Count; i++) { Wine w = (Wine)oc[i]; if((!w.ManualManagement) && (w.RackItems.Count > 0)) { continue; } if((w.ManualManagement) && (w.Bottles > 0)) { continue; } if(w.Purchases.Count > 0) { continue; } list.Add(w); } listWindow.Wines = list; listWindow.Show(); } App.SetCursor(false);