示例#1
0
        private void btmCreate_Click(object sender, RoutedEventArgs e)
        {
            if (!(AllComboBoxFilled()))
            {
                if (Convert.ToDouble(txtEditQty.Text) == 0)
                {
                    MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show("Are you sure you want edit the quantity of the product units to 0?", "Action", System.Windows.MessageBoxButton.YesNo);
                    if (messageBoxResult == MessageBoxResult.No)
                    {
                    }
                }

                Classes.ProdInventory.Create(ProdId, Whid, Convert.ToDouble(txtEditQty.Text));
                IISM.Inventory.ProdInventory OpenW = new IISM.Inventory.ProdInventory();
                OpenW.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Not All fields were filled.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
示例#2
0
 private void btnProdInventory_Click(object sender, RoutedEventArgs e)
 {
     IISM.Inventory.ProdInventory OpenW = new IISM.Inventory.ProdInventory();
     OpenW.Show();
     this.Close();
 }