Exemplo n.º 1
0
 public BracketConfig(CyPhyReliabilityAnalysisSettings settings)
 {
     this.Material = settings.Material;
     this.Size = settings.Size;
     this.AngularThickness = settings.AngularThickness;
     this.GussetThickness = settings.GussetThickness;
 }
Exemplo n.º 2
0
 public BracketConfig(CyPhyReliabilityAnalysisSettings settings)
 {
     this.Material         = settings.Material;
     this.Size             = settings.Size;
     this.AngularThickness = settings.AngularThickness;
     this.GussetThickness  = settings.GussetThickness;
 }
Exemplo n.º 3
0
        public MainForm(CyPhyReliabilityAnalysisSettings oldSettings)
        {
            InitializeComponent();
            this.settings = oldSettings;
            this.angularThickness = this.settings.AngularThickness;
            this.gussetThickness = this.settings.GussetThickness;
            if (this.settings.Material == "Steel")
            {
                this.cbMaterial.SelectedIndex = 0;
            }
            else
            {
                this.cbMaterial.SelectedIndex = 1;
            }

            this.cbSize.SelectedIndex = this.settings.Size - 1;
        }
Exemplo n.º 4
0
        public MainForm(CyPhyReliabilityAnalysisSettings oldSettings)
        {
            InitializeComponent();
            this.settings         = oldSettings;
            this.angularThickness = this.settings.AngularThickness;
            this.gussetThickness  = this.settings.GussetThickness;
            if (this.settings.Material == "Steel")
            {
                this.cbMaterial.SelectedIndex = 0;
            }
            else
            {
                this.cbMaterial.SelectedIndex = 1;
            }

            this.cbSize.SelectedIndex = this.settings.Size - 1;
        }
Exemplo n.º 5
0
        public IInterpreterConfiguration DoGUIConfiguration(IInterpreterPreConfiguration preConfig, IInterpreterConfiguration previousConfig)
        {
            DialogResult ok = DialogResult.Cancel;

            var settings = previousConfig as CyPhyReliabilityAnalysisSettings;

            if (settings == null)
            {
                settings = new CyPhyReliabilityAnalysisSettings();
            }

            using (MainForm mf = new MainForm(settings))
            {
                // show main form
                ok = mf.ShowDialog();
            }

            if (ok == DialogResult.OK)
            {
                return(settings);
            }

            return(null);
        }
        public IInterpreterConfiguration DoGUIConfiguration(IInterpreterPreConfiguration preConfig, IInterpreterConfiguration previousConfig)
        {
            DialogResult ok = DialogResult.Cancel;

            var settings = previousConfig as CyPhyReliabilityAnalysisSettings;

            if (settings == null)
            {
                settings = new CyPhyReliabilityAnalysisSettings();
            }

            using (MainForm mf = new MainForm(settings))
            {
                // show main form
                ok = mf.ShowDialog();
            }

            if (ok == DialogResult.OK)
            {
                return settings;
            }

            return null;
        }