private void dcDesign_HeightChanged(object sender, HeightEventArgs e)
 {
     if (OnHeightChanged != null)
     {
         OnHeightChanged(this, e);
     }
 }
Ejemplo n.º 2
0
 private void rdlDesigner_HeightChanged(object sender, HeightEventArgs e)
 {
     if (OnHeightChanged != null)
         OnHeightChanged(this, e);
 }
Ejemplo n.º 3
0
 private void HeightChanged(object sender, HeightEventArgs e)
 {
     if (e.Node != null)
     {
         // Only need to invalidate when the Body, PageHeader or PageFooter change height
         XmlNode p = e.Node.ParentNode;
         if (p != null &&
             (p.Name == "Body" || p.Name == "PageHeader" || p.Name == "PageFooter"))
         {
             this.Invalidate();
         }
     }
 }
Ejemplo n.º 4
0
        private void HeightChanged(object sender, HeightEventArgs e)
        {
            if (e.Height == null)
            {
                SetProperties(this.ActiveMdiChild as MDIChild);

                statusPosition.Text = "";
                return;
            }

            RegionInfo rinfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);
            float h = DesignXmlDraw.GetSize(e.Height);
            string sh;
            if (rinfo.IsMetric)
            {
                sh = string.Format("   height={0:0.00}cm        ",
                        h / (DesignXmlDraw.POINTSIZED / 2.54d));
            }
            else
            {
                sh = string.Format("   height={0:0.00}\"        ",
                        h / DesignXmlDraw.POINTSIZED);
            }
            statusPosition.Text = sh;
        }