示例#1
0
文件: Form1.cs 项目: fel88/Dendrite
        private void dagreToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CurrentLayout = new DagreGraphLayout();
            WaitDialog wd = new WaitDialog();

            drawEnabled = false;
            wd.Init(() =>
            {
                CurrentLayout.GetRenderTextWidth = renderTextWidth;
                CurrentLayout.Layout(Model);
                drawEnabled = true;
            });
            wd.ShowDialog();
            fitAll();
        }
示例#2
0
文件: Form1.cs 项目: fel88/Dendrite
 private void simpleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CurrentLayout = new SimpleGraphLayout();
     CurrentLayout.Layout(Model);
     fitAll();
 }