예제 #1
0
        /// <summary>
        /// Shop Products Display
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mProCatListView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ShopProGrid.DataSource = ProductFunctions.ProductDisplayByCategory(ShopListView);

            if (ManagerlistView.SelectedItems.Count > 0)
            {
                QuantityTxtBox.Text = ProductFunctions.ProductDisplayByCategory(ManagerlistView).Count.ToString();
            }
            else
            {
                QuantityTxtBox.Text = ProductFunctions.GetProducts().Count.ToString();
            }

            // Product quantity label
            QuantityTxtBox.Text = ShopProGrid.Rows.Count.ToString();
        }
예제 #2
0
 /// <summary>
 /// Manager Product Display
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mCatListVew_SelectedIndexChanged(object sender, EventArgs e)
 {
     ManagerDataGrid.DataSource = ProductFunctions.ProductDisplayByCategory(ManagerlistView);
 }