private void styleAlgReversedCheckedChanged(object sender, EventArgs e) { StyleAlgorithm alg = this.styleAlgCMB.SelectedItem as StyleAlgorithm; if (alg != null) { alg.Reversed = this.styleAlgReversedCHK.Checked; } }
private void styleAlgTestClick(object sender, EventArgs e) { StyleAlgorithm alg = this.styleAlgCMB.SelectedItem as StyleAlgorithm; if (alg != null) { alg.Compute(this.mScene); } }
private void styleAlgSelectedValueChanged(object sender, EventArgs e) { StyleAlgorithm alg = this.styleAlgCMB.SelectedItem as StyleAlgorithm; if (alg != null) { this.styleAlgDirectedCHK.Enabled = alg.EnableDirected; this.styleAlgReversedCHK.Enabled = alg.EnableReversed; this.styleAlgDirectedCHK.Checked = alg.Directed; this.styleAlgReversedCHK.Checked = alg.Reversed; } }