| | |
| | | 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)) |
| | | { |