Bevisuali.UX.LayoutInspector.xButtonApply_Click C# (CSharp) Method

xButtonApply_Click() private method

private xButtonApply_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void
        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);
        }