| | |
| | | _TankVmo.Description = DescriptionTextEdit.Text.Trim(); |
| | | _TankVmo.Name = TextEditName.Text.Trim(); |
| | | _TankVmo.KeyWord = this.TextEditKeyWord.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList(); |
| | | |
| | | _TankVmo.Flags = this.selectFlagsPopupCtrl1.SelectedFlags; |
| | | if (double.TryParse(this.textEditDN.Text, out double DN)) |
| | | { |
| | | _TankVmo.DN = DN; |
| | | } |
| | | if (double.TryParse(this.textEditMinLevel.Text, out double MinLevel)) |
| | | { |
| | | _TankVmo.MinLevel = MinLevel; |
| | | } |
| | | if (double.TryParse(this.textEditMinVol.Text, out double MinVol)) |
| | | { |
| | | _TankVmo.MinVol = MinVol; |
| | | } |
| | | _TankVmo.OverFlow = this.textEditVoerFlow.Checked; |
| | | if (await this.ReloadDataEvent.Invoke(_TankVmo)) |
| | | { |
| | | TipFormHelper.ShowSucceed("添加成功!"); |