public void PopupLayouter(Form owner)
 {
     LayoutDialog layout = new LayoutDialog
     {
         Project = Project,
         Diagram = TableDiagram,
         SelectedShapes = TableDiagram.Shapes.Where(t => t.GetType() != typeof (Label))
     };
     layout.Show(owner);
 }
Exemplo n.º 2
0
		private void viewShowLayoutControlToolStripMenuItem_Click(object sender, EventArgs e) {
			if (layoutControlForm == null) {
				LayoutDialog lcf = new LayoutDialog();
				lcf.Project = CurrentDisplay.Project;
				lcf.Diagram = CurrentDisplay.Diagram;
				lcf.SelectedShapes = CurrentDisplay.SelectedShapes;
				lcf.FormClosed += LayoutControlForm_FormClosed;
				lcf.LayoutChanged += LayoutControlForm_LayoutChanged;
				lcf.Show(this);
				layoutControlForm = lcf;
			} else {
				layoutControlForm.Activate();
			}
		}