| | |
| | | { |
| | | TextEditMaterial.EditValue = _ThreeLinkVmo.MaterialName.ToString(); |
| | | } |
| | | this.textEditRunThroughCoefficient.Text = _ThreeLinkVmo.RunThroughCoefficient.ToString(); |
| | | this.textEditBranchThroughCoefficient.Text = _ThreeLinkVmo.BranchThroughCoefficient.ToString(); |
| | | this.TextEditName.Text = _ThreeLinkVmo.Name; |
| | | this.DescriptionTextEdit.Text = _ThreeLinkVmo.Description; |
| | | this.TextEditCoefficient.Text = _ThreeLinkVmo.Coefficient.ToString(); |
| | |
| | | { |
| | | _ThreeLinkVmo.Caliber = null; |
| | | } |
| | | if (double.TryParse(textEditRunThroughCoefficient.Text, out double runThrough)) |
| | | { |
| | | _ThreeLinkVmo.Coefficient = runThrough; |
| | | } |
| | | if (double.TryParse(textEditBranchThroughCoefficient.Text, out double branchThough)) |
| | | { |
| | | _ThreeLinkVmo.Coefficient = branchThough; |
| | | } |
| | | if (await this.ReloadDataEvent.Invoke(_ThreeLinkVmo)) |
| | | { |
| | | TipFormHelper.ShowSucceed("修改成功!"); |