private void BtnAddEdge_Click(object sender, EventArgs e) { string p1 = textPoint1.Text; string p2 = textPoint2.Text; string weight = textWeight.Text; textPoint1.Clear(); textPoint2.Clear(); textWeight.Clear(); controller.AddButtonClick(p1.ToUpper(), p2.ToUpper(), weight, tableEdges); }