예제 #1
0
파일: MainForm.cs 프로젝트: KKllwetr/Task6
        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();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: KKllwetr/Task6
        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();
        }