Пример #1
0
 /// <inheritdoc/>
 public virtual IHostWindow?GetHostWindow(string id)
 {
     if (!string.IsNullOrEmpty(id))
     {
         Func <IHostWindow>?locator = null;
         if (HostWindowLocator?.TryGetValue(id, out locator) == true)
         {
             return(locator?.Invoke());
         }
     }
     return(null);
 }
Пример #2
0
 /// <inheritdoc/>
 public virtual IHostWindow?GetHostWindow(string id)
 {
     if (!string.IsNullOrEmpty(id))
     {
         Func <IHostWindow>?locator = null;
         if (HostWindowLocator?.TryGetValue(id, out locator) == true)
         {
             return(locator?.Invoke());
         }
     }
     Debug.WriteLine($"Host window with provided id={id} is not registered.");
     return(null);
 }