private void tsbCloseOffer_Click(object sender, EventArgs e) { OfferItems item = offerItemsList[tabControl1.SelectedIndex]; BuyerOfferItems bItem = item as BuyerOfferItems; bItem.UpdateOfferState((int)OfferState.Closed); }
private void tsbRoute_Click(object sender, EventArgs e) { OfferItems item = offerItemsList[tabControl1.SelectedIndex]; if (DialogResult.Yes == MessageBox.Show("Route the Offer?", "", MessageBoxButtons.YesNo)) { BuyerOfferItems bItem = item as BuyerOfferItems; bItem.UpdateOfferState((int)OfferState.Routed); } }
private void tsbRoute_Click(object sender, EventArgs e) { OfferItems item = offerItemsList[tabControl1.SelectedIndex]; if (DialogResult.Yes == MessageBox.Show("Route the Offer?", "", MessageBoxButtons.YesNo)) { BuyerOfferItems bItem = item as BuyerOfferItems; bItem.UpdateOfferState((int)OfferState.Routed); this.tsbRoute.Enabled = false; OfferMgr.OfferMgr.SendOfferRouteEmail(bItem.GetOfferId()); } this.DialogResult = DialogResult.Yes; }