Esempio n. 1
0
        private void insertBtn_Click_1(object sender, RoutedEventArgs e)
        {
            int qty   = Int32.Parse(prodQty.Text);
            int price = Int32.Parse(prodPrice.Text);

            vm.CallAddProduct(prodName.Text, qty, price);

            Hide();
        }
Esempio n. 2
0
        private void insertBtn_Click_1(object sender, RoutedEventArgs e)
        {
            string text;

            text = vm.CallAddProduct(prodName.Text, Int32.Parse(prodQty.Text), Int32.Parse(prodPrice.Text));

            notif.Text = text;

            prodName.Text  = "";
            prodQty.Text   = "0";
            prodPrice.Text = "0";
        }