private static IpModel toModel(ControllerCenter.Model.IpModel obj) { return(new IpModel() { Id = obj.Id, IpName = obj.IpName }); }
public IpModelAdd(ControllerCenter.Model.IpModel ipModel) { InitializeComponent(); InitUI(ipModel); }
private void InitUI(ControllerCenter.Model.IpModel ipModel) { this._IpModelInfoViewModel = new ControllerCenter.MVVM.ViewModel.IpModel.IpModelInfoViewModel(this); this.DataContext = this._IpModelAddViewModel; }