Example #1
0
        private void tsbCloseOffer_Click(object sender, EventArgs e)
        {
            OfferItems      item  = offerItemsList[tabControl1.SelectedIndex];
            BuyerOfferItems bItem = item as BuyerOfferItems;

            bItem.UpdateOfferState((int)OfferState.Closed);
        }
Example #2
0
        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);
            }
        }
Example #3
0
        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;
        }