コード例 #1
0
        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);
            }
        }
コード例 #2
0
        private void OnAddAmount(object sender, RoutedEventArgs e)
        {
            var p = DataContext as PackageFormValitationModel;

            _store.AddPackage(p.Width, p.Height, p.Quantity);
        }