private void toolStripMenuItem2_Click(object sender, EventArgs e) { WriteForm writeForm = new WriteForm(); Entity entity = network.SeacrhNode(e1.X, e1.Y); writeForm.TextSend.Text = entity.ToTextbox(); writeForm.ShowDialog(); }
private void propertyToolStripMenuItem_Click(object sender, EventArgs e) { WriteForm writeForm = new WriteForm(); if (writeForm.ShowDialog() == DialogResult.OK) { string text = writeForm.TextSend.Text; Entity entity = network.SeacrhNode(e1.X, e1.Y); entity.Value = text; } network.DrawFigure(); Draw(); }