Ejemplo n.º 1
0
 private void uxRetrieveInformation_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(uxDealNumber.Text))
     {
         DealInfo dealInfo = SitecoreClient.GetDealInfo(uxDealNumber.Text);
         uxPreviewDeals.UpdatePreview(dealInfo);
         uxPreviewDeals.Tag            = dealInfo;
         uxRetrieveInformation.Visible = false;
         uxInsertIntoArticle.Visible   = true;
         uxViewDetails.Enabled         = true;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Execute the next step. If a deal number is in the preview, insert it and remove from preview.
 /// If no deal is in the preview, try place it in preview.
 /// </summary>
 public void DealNumberGo()
 {
     companyTreeView1.Visible = false;
     uxPreviewDeals.Visible   = true;
     if (uxPreviewDeals.Tag == null)
     {
         DealInfo dealInfo = SitecoreClient.GetDealInfo(uxDealNumber.Text);
         uxPreviewDeals.UpdatePreview(dealInfo);
         uxPreviewDeals.Tag            = dealInfo;
         uxRetrieveInformation.Visible = false;
         uxInsertIntoArticle.Visible   = true;
         uxViewDetails.Enabled         = true;
     }
     else if (uxPreviewDeals.Tag is DealInfo)
     {
         InsertDealIntoDocument((DealInfo)uxPreviewDeals.Tag);
         SetToRetrieveDealMode();
     }
 }