예제 #1
0
        private void xButtonApply_Click(object sender, RoutedEventArgs e)
        {
            var   algorithm            = NetworkLayoutOptions.AlgorithmEnum.SugiyamaEfficient;
            float nodeSeparationTarget = float.Parse(this.xNodeSeparationTargetTextBox.Text);
            int   epochs        = (int)Math.Round(float.Parse(this.xEpochsTextBox.Text));
            float nodeSize      = float.Parse(this.xNodeSizeTextBox.Text);
            float edgeThickness = float.Parse(this.xEdgeThickness.Text);

            var layoutOptions
                = new NetworkLayoutOptions(
                      algorithm,
                      nodeSeparationTarget,
                      epochs,
                      nodeSize,
                      edgeThickness);

            App.Current.MainWindow.RequestLayoutOptions(layoutOptions);
        }
예제 #2
0
 internal void RequestLayoutOptions(NetworkLayoutOptions options)
 {
     Debug.Assert(options != null);
     this.Model.NetworkLayoutOptions = options;
 }