Beispiel #1
0
        private void CostumeCurrentShopTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
        {
            if (isEnter)
            {
                if (costumeItem == null)
                {
                    // this.CostumeCurrentShopTextBox1.SkinTxt.Text = "";
                    this.curSelectedCostumeStoreList = null;
                }
                else

                {
                    //this.CostumeCurrentShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                    this.curSelectedCostumeStoreList = CostumeFromShopTextBox.GetCostumeStores(costumeItem, false);
                }

                this.BindingSelectedCostumeStoreSource(null);
            }
        }
Beispiel #2
0
        private void costumeFromSupplierTextBox1_CostumeSelected(CostumeItem costumeItem, bool isEnter)
        {
            if (isEnter)
            {
                if (costumeItem == null)
                {
                    //this.costumeFromShopTextBox1.SkinTxt.Text = "";
                    this.curSelectedCostumeStoreList = null;
                }
                else
                {
                    this.curSelectedCostumeStoreList = new List <CostumeStore>();
                    //    this.costumeFromShopTextBox1.SkinTxt.Text = costumeItem.Costume.ID;
                    List <CostumeStore> stores = CostumeFromShopTextBox.GetCostumeStores(costumeItem, false);
                    foreach (var item in stores)
                    {
                        AddItem4Display(item);
                    }
                }

                this.BindingSelectedCostumeStoreSource();
            }
        }