private void HeightChanged(object sender, HeightEventArgs e)
        {
            if (e.Height == null)
            {
                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);
            }
        }
 private void dcDesign_HeightChanged(object sender, HeightEventArgs e)
 {
     if (OnHeightChanged != null)
     {
         OnHeightChanged(this, e);
     }
 }
        private void HeightChanged(object sender, HeightEventArgs e)
        {
            if (e.Height == null)
            {
                SetProperties(ActiveMdiChild as MDIChild);

                statusPosition.Text = "";
                return;
            }

            var rinfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);
            var unit = rinfo.IsMetric ? Strings.RdlDesigner_Status_cm : Strings.RdlDesigner_Status_in;
            var h = DesignXmlDraw.GetSize(e.Height) / DesignXmlDraw.POINTSIZED;

            if (rinfo.IsMetric)
            {
                h *= 2.54f;
            }

            statusPosition.Text = string.Format("   {1}={0:0.00}{2}        ", h, Strings.RdlDesigner_Status_Height, unit);
        }
 private void rdlDesigner_HeightChanged(object sender, HeightEventArgs e)
 {
     if (OnHeightChanged != null)
         OnHeightChanged(this, e);
 }
Beispiel #5
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();
         }
     }
 }
        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;
        }