Exemplo n.º 1
0
        protected string GetState()
        {
            System.Globalization.NumberFormatInfo format = AvoCommon.GetNumberFormat();
            StringBuilder code          = new StringBuilder();
            string        v             = "$find(\"" + this.ClientID + "\")";
            string        needToRefresh = v + "._needToRefresh=false;";

            code.Append(v + "._scrollingPosition=new Aurigma.GraphicsMill.PointF(" +
                        this.ScrollingPosition.X.ToString(format) + "," + this.ScrollingPosition.Y.ToString(format) + ");");
            code.Append(v + "._zoom=" + this.Zoom.ToString(format) + ";");
            code.Append(v + "._zoomMode=" + System.Convert.ToInt32(this.ZoomMode, format).ToString(format) + ";");
            code.Append(needToRefresh);
            return(code.ToString());
        }