public void UnregisterName(string name, bool isDelete = true) { if (Win != null) { Win.UnregisterName(name); if (isDelete) { if (Names.Contains(name)) { Names.Remove(name); } } } else if (WinFramework != null) { WinFramework.UnregisterName(name); if (isDelete) { if (Names.Contains(name)) { Names.Remove(name); } } } }
public void RegisterName(string name, object scopedElement) { if (WinFramework != null) { name = namePrix + name; WinFramework.RegisterName(name, scopedElement); if (!Names.Contains(name)) { Names.Add(name); } } else if (Win != null) { name = namePrix + name; Win.RegisterName(name, scopedElement); if (!Names.Contains(name)) { Names.Add(name); } } }
public void RegisterName(object scopedElement) { if (WinFramework != null) { string name = scopedElement.GetHashCode().ToString(); name = namePrix + name; WinFramework.RegisterName(name, scopedElement); if (!Names.Contains(name)) { Names.Add(name); } } else if (Win != null) { string name = scopedElement.GetHashCode().ToString(); name = namePrix + name; Win.RegisterName(name, scopedElement); if (!Names.Contains(name)) { Names.Add(name); } } }