Exemplo n.º 1
0
        // 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> ();
            }
        }
Exemplo n.º 2
0
        // 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;
        }
Exemplo n.º 3
0
 // Called when this popup is opened.
 public override void OnOpen()
 {
     base.OnOpen();
     Layout = new YesAndLayout();
 }