コード例 #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
ファイル: MainWindow.xaml.cs プロジェクト: HiMichelle/F-AI
 internal void RequestLayoutOptions(NetworkLayoutOptions options)
 {
     Debug.Assert(options != null);
     this.Model.NetworkLayoutOptions = options;
 }