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(); }
private void simpleToolStripMenuItem_Click(object sender, EventArgs e) { CurrentLayout = new SimpleGraphLayout(); CurrentLayout.Layout(Model); fitAll(); }