示例#1
0
    public Form1()
    {
      InitializeComponent();

      this.flowChart1.DocExtents = new RectangleF(-10.0F, -10.0F, 120.0F, 120.0F);
      ZoomToRect(visibleRect);

      int previewY = 0;
      for (int i = 0; i < previewCount; i++)
      {
        int height = (int)(400.0 / Math.Pow(2.0, (i + 1.0)));
        previews[i] = new Preview(this, showPreviewToolStripMenuItem, height, previewY);
        previewY += height + 2;

        previews[i].Owner = this;
      }

      UpdatePreviews();

      ResetFlowChart(true);
    }
示例#2
0
文件: Form1.cs 项目: 15831944/Test3-1
        public Form1()
        {
            InitializeComponent();

            this.flowChart1.DocExtents = new RectangleF(-10.0F, -10.0F, 120.0F, 120.0F);
            ZoomToRect(visibleRect);

            int previewY = 0;

            for (int i = 0; i < previewCount; i++)
            {
                int height = (int)(400.0 / Math.Pow(2.0, (i + 1.0)));
                previews[i] = new Preview(this, showPreviewToolStripMenuItem, height, previewY);
                previewY   += height + 2;

                previews[i].Owner = this;
            }

            UpdatePreviews();

            ResetFlowChart(true);
        }