Beispiel #1
0
        private void CreateMaterial_Click(object sender, EventArgs e)
        {
            prop = new MaterialProperties(FemapModel);
            SyncGUI ui = new SyncGUI(FemapModel);

            try
            {
                if (Auto.IsChecked)
                {
                    materials.First(w => w.title == materialLibraryComboBox.Text).Put(FemapModel.feMatl.CountSet() + 1);
                    FemapModel.feView.Regenerate();
                    SQLControl(materialLibraryComboBox.Text,
                               materials.First(w => w.title == materialLibraryComboBox.Text).Ex,
                               materials.First(w => w.title == materialLibraryComboBox.Text).Gx,
                               materials.First(w => w.title == materialLibraryComboBox.Text).Nuxy);
                }
                else if (Manual.IsChecked)
                {
                    prop.SetManualMaterial(TitleBox.Text, ui.DParse(EBox), ui.DParse(GBox), ui.DParse(NuBox));
                    SQLControl(TitleBox.Text, ui.DParse(EBox), ui.DParse(GBox), ui.DParse(NuBox));
                }
                Close();
            }
            catch (Exception) { }
        }