void ReleaseDesignerOutlets()
        {
            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

            if (BtnFavorite != null)
            {
                BtnFavorite.Dispose();
                BtnFavorite = null;
            }

            if (BtnRemove != null)
            {
                BtnRemove.Dispose();
                BtnRemove = null;
            }

            if (ImgProduct != null)
            {
                ImgProduct.Dispose();
                ImgProduct = null;
            }

            if (LblAmount != null)
            {
                LblAmount.Dispose();
                LblAmount = null;
            }

            if (LblDiscount != null)
            {
                LblDiscount.Dispose();
                LblDiscount = null;
            }

            if (LblProductName != null)
            {
                LblProductName.Dispose();
                LblProductName = null;
            }

            if (LblProductPrice != null)
            {
                LblProductPrice.Dispose();
                LblProductPrice = null;
            }

            if (LblSale != null)
            {
                LblSale.Dispose();
                LblSale = null;
            }

            if (VwDiscount != null)
            {
                VwDiscount.Dispose();
                VwDiscount = null;
            }
        }
예제 #2
0
 private void ListGroup_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     BtnRemove.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
 }