// Выделение выбранного ребра красным цветом private void edgesBox_SelectedIndexChanged(object sender, EventArgs e) { edge ed = edgesBox.SelectedItem as edge; drawRedEdge(ed); }
private void comboBoxEdgeIntsct1_SelectedIndexChanged(object sender, EventArgs e) { edge ed = (sender as ComboBox).SelectedItem as edge; drawRedEdge(ed); }
//public edge(point p1, point p2) //{ // if (p1 < p2) // { // source = p1; // dest = p2; // } // else // { // source = p2; // dest = p1; // } //} public edge(edge e) { this.source = e.source; this.dest = e.dest; }