コード例 #1
0
        private void styleAlgReversedCheckedChanged(object sender, EventArgs e)
        {
            StyleAlgorithm alg = this.styleAlgCMB.SelectedItem as StyleAlgorithm;

            if (alg != null)
            {
                alg.Reversed = this.styleAlgReversedCHK.Checked;
            }
        }
コード例 #2
0
        private void styleAlgTestClick(object sender, EventArgs e)
        {
            StyleAlgorithm alg = this.styleAlgCMB.SelectedItem as StyleAlgorithm;

            if (alg != null)
            {
                alg.Compute(this.mScene);
            }
        }
コード例 #3
0
        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;
            }
        }