private void BtnGetItem_Click(object sender, System.EventArgs e) { FrmGetItem form = new FrmGetItem(); form.mItemID = TxtItemId.Text; form.Context = Context; form.ShowDialog(); }
private void BtnGetItem_Click(object sender, System.EventArgs e) { FrmGetItem form = new FrmGetItem(); form.Context = Context; form.ShowDialog(); fetchedItem = form.getItem(); if (fetchedItem != null) { TxtTitle.Text = fetchedItem.Title; TxtPrimaryCategory.Text = fetchedItem.PrimaryCategory.CategoryID; CategoryType secondaryCategory = fetchedItem.SecondaryCategory; TxtSecondaryCategory.Text = (secondaryCategory != null)?secondaryCategory.CategoryID:""; TxtStartPrice.Text = fetchedItem.SellingStatus.CurrentPrice.Value.ToString(); AmountType amt = fetchedItem.ReservePrice; TxtReservePrice.Text = (amt == null)?"":amt.Value.ToString(); amt = fetchedItem.BuyItNowPrice; TxtBuyItNowPrice.Text = (amt == null)?"":amt.Value.ToString(); TxtItemID.Text = fetchedItem.ItemID; } }
private void BtnGetItem_Click(object sender, System.EventArgs e) { FrmGetItem form = new FrmGetItem(); form.Context = Context; form.ShowDialog(); fetchedItem = form.getItem(); if(fetchedItem != null) { TxtTitle.Text = fetchedItem.Title; TxtPrimaryCategory.Text = fetchedItem.PrimaryCategory.CategoryID; CategoryType secondaryCategory = fetchedItem.SecondaryCategory; TxtSecondaryCategory.Text = (secondaryCategory != null)?secondaryCategory.CategoryID:""; TxtStartPrice.Text = fetchedItem.SellingStatus.CurrentPrice.Value.ToString(); AmountType amt = fetchedItem.ReservePrice; TxtReservePrice.Text = (amt == null)?"":amt.Value.ToString(); amt = fetchedItem.BuyItNowPrice; TxtBuyItNowPrice.Text = (amt == null)?"":amt.Value.ToString(); TxtItemID.Text = fetchedItem.ItemID; } }