duheng
2024-11-13 ba19a8e1fdbd9818687a850e596bca824856d6e7
WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/AddThreeLinkMainDlg.cs
@@ -65,18 +65,26 @@
                return;
            _ThreeLinkVmo.Description = DescriptionTextEdit.Text.Trim();
            _ThreeLinkVmo.Name = TextEditName.Text.Trim();
            _ThreeLinkVmo.KeyWord = TextEditKeyWorld.Text.Trim();
            _ThreeLinkVmo.KeyWord = this.TextEditKeyWord.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
            if (TextEditMaterial.Text != "默认")
            {
                _ThreeLinkVmo.MaterialName = TextEditMaterial.Text.Trim();
                _ThreeLinkVmo.Material = TextEditMaterial.Text.Trim();
            }
            if (double.TryParse(TextEditCaliber.Text, out double caliber))
            {
                _ThreeLinkVmo.Caliber = caliber;
            }
            if (double.TryParse(TextEditCoefficient.Text, out double Coefficient))
            if (double.TryParse(TextEditCoefficient.Text, out double MinorLoss))
            {
                _ThreeLinkVmo.Coefficient = Coefficient;
                _ThreeLinkVmo.MinorLoss = MinorLoss;
            }
            if (double.TryParse(textEditRunThroughCoefficient.Text, out double runThrough))
            {
                _ThreeLinkVmo.RunThroughMinorLoss = runThrough;
            }
            if (double.TryParse(textEditBranchThroughCoefficient.Text, out double branchThough))
            {
                _ThreeLinkVmo.BranchThroughMinorLoss = branchThough;
            }
            if (await this.ReloadDataEvent.Invoke(_ThreeLinkVmo))
            {