| | |
| | | using DevExpress.XtraEditors; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace IBox.WinFrmUI |
| | | namespace IBox.WinFrmUI |
| | | { |
| | | public partial class ProtocolSL : DevExpress.XtraEditors.XtraUserControl |
| | | { |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取数据 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public IBoxProtocolViewModel GetData() |
| | | { |
| | | var model = new IBoxProtocolViewModel(); |
| | |
| | | return model; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 绑定数据 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | public void SetData(IBoxProtocolViewModel model) |
| | | { |
| | | this.textEditIP.Text = model.IP; |