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