コード例 #1
0
ファイル: BracketConfig.cs プロジェクト: neemask/meta-core
 public BracketConfig(CyPhyReliabilityAnalysisSettings settings)
 {
     this.Material = settings.Material;
     this.Size = settings.Size;
     this.AngularThickness = settings.AngularThickness;
     this.GussetThickness = settings.GussetThickness;
 }
コード例 #2
0
ファイル: BracketConfig.cs プロジェクト: landunin/meta-core
 public BracketConfig(CyPhyReliabilityAnalysisSettings settings)
 {
     this.Material         = settings.Material;
     this.Size             = settings.Size;
     this.AngularThickness = settings.AngularThickness;
     this.GussetThickness  = settings.GussetThickness;
 }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: neemask/meta-core
        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;
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: landunin/meta-core
        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;
        }
コード例 #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);
        }
コード例 #6
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;
        }