private void FillForm()
        {
            int x = 0, y = 0;
            userwallet = new walletPaneControl(user.wallet);
            userwallet.Dock = System.Windows.Forms.DockStyle.Left;
            userwallet.Location = new System.Drawing.Point(x, y);
            userwallet.Name = "userwalletPane";
            userwallet.Size = new System.Drawing.Size(195, 264);
            userwallet.BorderStyle = BorderStyle.Fixed3D;

            //slotPane = new slotPaneControl(vm, user);
            slotPane = new slotPaneControl(vm.tempwallet);
            slotPane.Dock = System.Windows.Forms.DockStyle.Left;
            slotPane.Location = new System.Drawing.Point(x += userwallet.Size.Width, 0);
            slotPane.Name = "productPane";
            slotPane.Size = new System.Drawing.Size(195, 264);
            slotPane.BorderStyle = BorderStyle.Fixed3D;

            vmwallet = new walletPaneControl(vm.wallet);
            vmwallet.Dock = System.Windows.Forms.DockStyle.Right;
            vmwallet.Location = new System.Drawing.Point(x += slotPane.Size.Width, 0);
            vmwallet.Name = "vmwalletPane";
            vmwallet.Size = new System.Drawing.Size(195, 264);
            vmwallet.BorderStyle = BorderStyle.Fixed3D;
            vmwallet.Enabled = false;
            //vmwallet.

            productPane = new productPaneControl(vm.products);
            productPane.Dock = System.Windows.Forms.DockStyle.Right;
            productPane.Location = new System.Drawing.Point(x += vmwallet.Size.Width, 0);
            productPane.Name = "productPane";
            productPane.Size = new System.Drawing.Size(195, 264);
            productPane.BorderStyle = BorderStyle.Fixed3D;

            this.Controls.Add(slotPane);
            this.Controls.Add(userwallet);
            this.Controls.Add(productPane);
            this.Controls.Add(vmwallet);
        }
 private void wallet_changed(object sender, walletPaneControl.WalletEventArgs e)
 {
     user.wallet.CoinByValue(e.value).count--;
     userwallet.UpdateWallet(user.wallet);
     vm.tempwallet.AddCoin(new CoinSet(e.value, 1)); // CoinByValue(e.value).count++;
     slotPane.setData(vm.tempwallet);
 }