// Reinitialize this window because something is missing. private void Reinitialize() { // Missing layout object. if (Layout == null) { Layout = new YesAndLayout(); } // Missing child list. if (Children == null) { Children = new List <YesAndEditorWindow> (); } }
// Reinitialize this editor. protected virtual void Reinitialize() { // Initialize the layout object. if (Layout == null) { Layout = new YesAndLayout(); } // Cast and cache the target. if (selected == null) { selected = target as T; } // Flag initialized. initialized = true; }
// Called when this popup is opened. public override void OnOpen() { base.OnOpen(); Layout = new YesAndLayout(); }