示例#1
0
        public PanelParams()
        {
            InitializeComponent();

            if (PVM == null)
            {
                PVM = new ParamsViewModel();
            }

            DataContext = PVM;
        }
        public ViewViewComponentResult Invoke(ParamType key)
        {
            var value = _settingService.GetParam(key) ?? new Param();

            var model = new ParamsViewModel
            {
                Key   = value.Name,
                Value = value.Description
            };

            return(View(model));
        }
 public ParamsView()
 {
     InitializeComponent();
     DataContext = new ParamsViewModel();
 }