private static void Static(WeakEventListener<UrlCallSettingsViewModel, UrlCallSettingsEdit, EventArgs> listener, UrlCallSettingsEdit source) { source.ValidationComplete -= listener.OnEvent; }
/// <summary> /// Refreshes the internal. /// </summary> /// <param name="model">The model.</param> private void RefreshInternal(UrlCallSettingsEdit model) { Model = model; ((IActionCommand)ClearAddressExpressionCommand).RaiseCanExecuteChanged(); RaisePropertyChanged(() => AddressExpressionIsValid); PopulateParameters(); }
private static void Static(WeakEventListener<UrlCallSettingsViewModel, UrlCallSettingsEdit, PropertyChangedEventArgs> listener, UrlCallSettingsEdit source) { source.PropertyChanged -= listener.OnEvent; }
/// <summary> /// Initializes the view model. /// </summary> /// <param name="model">The model.</param> /// <param name="parentViewModel">The parent view model.</param> /// <exception cref="System.ArgumentNullException"> /// model /// or /// parentViewModel /// </exception> /// <exception cref="ArgumentNullException">The <paramref name="model" /> parameter is null.</exception> /// <exception cref="ArgumentNullException">The <paramref name="parentViewModel" /> parameter is null.</exception> public void Initialize(UrlCallSettingsEdit model, IServiceCallSettingsViewModel parentViewModel) { if (model == null) throw new ArgumentNullException("model"); if (parentViewModel == null) throw new ArgumentNullException("parentViewModel"); ParentViewModel = parentViewModel; RefreshInternal(model); }