private void SelecteNodePenBTN_Click(object sender, EventArgs e) { PenCreatorForm penCreator = new PenCreatorForm(); penCreator.Pen = selectedNodePen; if (penCreator.ShowDialog() == DialogResult.OK) { selectedNodePen = penCreator.Pen; } }
private void EdgePenBTN_Click(object sender, EventArgs e) { PenCreatorForm penCreator = new PenCreatorForm(); penCreator.Pen = edgePen; if (penCreator.ShowDialog() == DialogResult.OK) { edgePen = penCreator.Pen; } }