Ejemplo n.º 1
0
 private void designPanel_SelectionChanged(object sender, ReportDesignerEventArgs e)
 {
     bool flag = e.Count > 0;
     cutToolStripButton.Enabled = flag;
     copyToolStripButton.Enabled = flag;
     if (e.Count > 0)
     {
         this.propertyGrid.SelectedObjects = e.Widget;
     }
     //else if (e.Count == 1)
     //{
     //    this.propertyGrid.SelectedObject = e.Widget;
     //}
     else
     {
         this.propertyGrid.SelectedObject = null;
     }
     isReportContext = false;
 }
Ejemplo n.º 2
0
 private void designPanel_ClipBoardChanged(object sender, ReportDesignerEventArgs e)
 {
     pasteToolStripButton.Enabled = e.Count > 0;
 }