ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/01-series/AddPipeLineSeriesDlg.cs ÐÞ¸Ä |
| | |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | this.Load += AddAssetsFourlinkSeriesDlg_Load; |
| | | } |
| | | |
| | | public event Func<Vmo.AssetsFourlinkSeriesVmo, Task<bool>> ReloadDataEvent = null; |
| | | public event Func<Vmo.AssetsFourlinkSeriesVmo, object, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private List<AssetsFourlinkSeriesViewModel> _assetsFourlinkSeriesViews; |
| | | |
| | | //åå§å |
| | | private async void AddAssetsFourlinkSeriesDlg_Load(object sender, EventArgs e) |
| | | { |
| | | _assetsFourlinkSeriesViews = new List<AssetsFourlinkSeriesViewModel>(); |
| | | var allList = await new BLL.AssetsFourlinkSeries().GetAll(); |
| | | foreach (var item in allList) |
| | | { |
| | | _assetsFourlinkSeriesViews.Add(new AssetsFourlinkSeriesViewModel(item)); |
| | | } |
| | | treeListLookUpEdit1TreeList.DataSource = _assetsFourlinkSeriesViews; |
| | | } |
| | | |
| | | //æ°æ®éªè¯ |
| | | private bool Valid() |
| | |
| | | model.Name = NameTextEdit.Text; |
| | | model.TagName = TagNameTextEdit.Text; |
| | | model.Description = DescriptionTextEdit.Text; |
| | | if (await this.ReloadDataEvent.Invoke(model)) |
| | | if (await this.ReloadDataEvent.Invoke(model, this.textEditParentList.EditValue)) |
| | | { |
| | | TipFormHelper.ShowSucceed("æ·»å æå!"); |
| | | } |