public void SetRdlText(string text)
 {
     if (_CurrentTab == "design")
     {
         try
         {
             dcDesign.ReportSource = text;
             dcDesign.Refresh();
         }
         catch (Exception e)
         {
             MessageBox.Show(e.Message, Strings.RdlEditPreview_Show_Report);
             this.tbEditor.Text  = text;
             tcEHP.SelectedIndex = 1;                            // Force current tab to edit syntax
             _DesignChanged      = "edit";
         }
     }
     else
     {
         this.tbEditor.Text = text;
     }
 }
 public void SetRdlText(string text)
 {
     if (_CurrentTab == DesignTabs.Design)
     {
         try
         {
             dcDesign.ReportSource = text;
             dcDesign.Refresh();
             SetTextToScintilla(text);
         }
         catch (Exception e)
         {
             MessageBox.Show(e.Message, Strings.RdlEditPreview_Show_Report);
             SetTextToScintilla(text);
             tcEHP.SelectedIndex = (int)DesignTabs.Edit;                         // Force current tab to edit syntax
             _DesignChanged      = DesignTabs.Edit;
         }
     }
     else
     {
         SetTextToScintilla(text);
     }
 }