/// <summary>
        /// Called when [saved].
        /// </summary>
        /// <param name="model">The model.</param>
        public void OnSaved(EndpointsDescriptorEdit model)
        {
            Model = model;

            if (Model != null)
            {
                SourceViewModel.OnSaved(Model.Source);
            }
            else
            {
                ThePopupFactory.NotifyFailure("Model is null after saving end point");
                Logger.Log(LogSeverity.Error, GetType().ToString(), "Model is null after saving end point");
            }
        }
 /// <summary>
 /// Initializes the specified model.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <param name="parentWindow">The parent window.</param>
 public void Initialize(EndpointsDescriptorEdit model, ITopLevelWindow parentWindow)
 {
     Model = model;
     ParentWindow = parentWindow;
     SourceViewModel.Initialize(Model.Source, ParentWindow);
 }