示例#1
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is CheckBoxViewModel))
            {
                return;
            }
            var viewModel = (CheckBoxViewModel)buffer;

            Properties.Update(viewModel.Properties);
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
        }
示例#2
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is LabelViewModel))
            {
                return;
            }
            var viewModel = (LabelViewModel)buffer;

            Properties.Update(viewModel.Properties);
            TextProperties.Update(viewModel.TextProperties);
            RaisePropertyChanged(nameof(Color));
        }
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is DatePickerViewModel))
            {
                return;
            }
            var viewModel = (DatePickerViewModel)buffer;

            Properties.Update(viewModel.Properties);
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
            IsRequired = viewModel.IsRequired;
        }
示例#4
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is RadioViewModel))
            {
                return;
            }
            var viewModel = (RadioViewModel)buffer;

            Properties.Update(viewModel.Properties);
            GroupName = viewModel.GroupName;
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
        }