static void Main(string[] args) { IStore storageManager = StorageManager.Instance; for (int i = 0; i < 12; i++) { storageManager.AddPackage(4, 10); } for (int i = 10; i < 23; i++) { storageManager.AddPackage(i / 2, i); } }
private void OnAddAmount(object sender, RoutedEventArgs e) { var p = DataContext as PackageFormValitationModel; _store.AddPackage(p.Width, p.Height, p.Quantity); }