/// <summary>
        /// Creates a parameter view model.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <returns>Returns a <see cref="IUrlCallParameterViewModel" /> initialized with <paramref name="model" />.</returns>
        public IUrlCallParameterViewModel CreateViewModel(UrlCallParameterEdit model)
        {
            var viewModel = ParameterViewModelFactory.CreateExport().Value;
            viewModel.Initialize(model);

            return viewModel;
        }
        /// <summary>
        /// Initializes the view model.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <exception cref="System.ArgumentNullException">model</exception>
        /// <exception cref="ArgumentNullException">The <paramref name="model" /> parameter is null.</exception>
        public void Initialize(UrlCallParameterEdit model)
        {
            if (model == null)
                throw new ArgumentNullException("model");

            Model = model;
            RaisePropertyChanged(() => ValueExpressionIsValid);
        }
 private static void Static(WeakEventListener<UrlCallParameterViewModel, UrlCallParameterEdit, EventArgs> listener, UrlCallParameterEdit source)
 {
     source.ValidationComplete -= listener.OnEvent;
 }