public void AttachView(IDrawWindow view) { if (DefaultView == null) { DefaultView = view; } Views.Add(view); }
public void DetachView(IDrawWindow view) { Views.Remove(view); if (DefaultView == view) { if (Views.Count > 0) { DefaultView = Views[0]; } else { DefaultView = null; } } }
public void AttachView(IDrawWindow view) { if (DefaultView == null) { DefaultView = view; } Views.Add(view); }
public void DetachView(IDrawWindow view) { Views.Remove(view); if (DefaultView == view) { if (Views.Count > 0) { DefaultView = Views[0]; } else { DefaultView = null; } } }