Beispiel #1
0
 // show a Request for Proposals in a new window
 void ShowRfp()
 {
     if (this.selectedRfpId == Guid.Empty)
     {
         MessageBox.Show("Select an RFP from the lists in this screen");
     }
     else
     {
         if (this.cboParticipant.SelectedItem is Vendor)
         {
             if (this.selectedIsFinished)
             {
                 MessageBox.Show("A vendor can't see a finished Request for Proposals");
             }
             else
             {
                 SubmitProposal view = new SubmitProposal();
                 view.VendorId            = ((Vendor)this.cboParticipant.SelectedItem).Id;
                 view.RfpId               = this.selectedRfpId;
                 view.PurchaseProcessHost = this.PurchaseProcessHost;
                 view.ShowDialog();
             }
         }
         else
         {
             ViewRfp viewProposal = new ViewRfp();
             viewProposal.RfpId = this.selectedRfpId;
             viewProposal.ShowDialog();
         }
     }
 }
Beispiel #2
0
 // show a Request for Proposals in a new window
 void ShowRfp()
 {
     if (this.selectedRfpId == Guid.Empty)
     {
         MessageBox.Show("Select an RFP from the lists in this screen");
     }
     else
     {
         if (this.cboParticipant.SelectedItem is Vendor)
         {
             if (this.selectedIsFinished)
             {
                 MessageBox.Show("A vendor can't see a finished Request for Proposals");
             }
             else
             {
                 SubmitProposal view = new SubmitProposal();
                 view.VendorId = ((Vendor)this.cboParticipant.SelectedItem).Id;
                 view.RfpId = this.selectedRfpId;
                 view.PurchaseProcessHost = this.PurchaseProcessHost;
                 view.ShowDialog();
             }
         }
         else
         {
             ViewRfp viewProposal = new ViewRfp();
             viewProposal.RfpId = this.selectedRfpId;
             viewProposal.ShowDialog();
         }
     }
 }