private void UpdateParameter(object sender, ParameterEventArgs e) { k = e.GetPar; textBox1.Text = Convert.ToString(k); for (int i = 0; i < G.E.Count; i++) { G.E[i].optimal = false; } for (int i = 0; i < G.V.Count; i++) { //if (G.V[i].isin) { ends.Add(G.V[i]); } G.V[i].wasMin = false; G.V[i].t = max; G.V[i].p = max; } ClOperations.ClusterSelection(k, G, 2); Invalidate(); }
private void trackBar1_Scroll(object sender, EventArgs e) { ParameterEventArgs p = new ParameterEventArgs(Convert.ToDouble(trackBar1.Value) / 10); PCevent(this, p); }