public BracketConfig(CyPhyReliabilityAnalysisSettings settings) { this.Material = settings.Material; this.Size = settings.Size; this.AngularThickness = settings.AngularThickness; this.GussetThickness = settings.GussetThickness; }
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; }
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; }