private void CmbProduct_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     m_SelectedProduct = new BLL.Product(Int32.Parse(cmbProduct.SelectedValue.ToString()), OzyaysanBusinessEngine.Enumarations.State.Aktif);
     if (cmbColor.SelectedValue.ToString() != "0")
     {
         ColoredStock         = new BLL.Stock(m_SelectedProduct.ID, Int32.Parse(cmbColor.SelectedValue.ToString()));
         txtStockColored.Text = ColoredStock.Count.ToString();
     }
     NonColoredStock         = new BLL.Stock(m_SelectedProduct.ID);
     txtStockNonColored.Text = NonColoredStock.Count.ToString();
 }
        private void LoadDetail()
        {
            cmbProduct.SelectedValue = m_SelectedProduct.ID;
            cmbColor.SelectedValue   = m_SelectedProduct.CColor.ID;
            txtStockColoredUse.Text  = m_SelectedProduct.UsedStockCountColored.ToString();
            txtProductionCount.Text  = m_SelectedProduct.ProductionCount.ToString();
            txtOrderCount.Text       = m_SelectedProduct.OrderCount.ToString();
            txtPackageType.Text      = m_SelectedProduct.CurrentPackageType;
            NonColoredStock          = new BLL.Stock(m_SelectedProduct.ID);

            if (m_SelectedProduct.CColor.ID != 0)
            {
                ColoredStock         = new BLL.Stock(m_SelectedProduct.ID, m_SelectedProduct.CColor.ID);
                txtStockColored.Text = String.IsNullOrEmpty(ColoredStock.Count.ToString()) ? 0.ToString() : ColoredStock.Count.ToString();
            }

            txtStockNonColored.Text    = NonColoredStock.Count.ToString();
            txtStockNonColoredUse.Text = String.IsNullOrEmpty(m_SelectedProduct.UsedStockCountNonColored.ToString()) ? 0.ToString() : m_SelectedProduct.UsedStockCountNonColored.ToString();
        }
 private void CmbColor_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     ColoredStock         = new BLL.Stock(m_SelectedProduct.ID, Int32.Parse(cmbColor.SelectedValue.ToString()));
     txtStockColored.Text = ColoredStock.Count.ToString();
 }