Esempio n. 1
0
            private static void Initialize(StateHeaderDataOut data)
            {
                InitializeReorderState();
                InitializeMoveTransitionUp();
                InitializeDisplayStateEditor();
                InitializeEarlyOut();
                InitializeToggledIndex();

                void InitializeReorderState()
                {
                    data.SetReorderState(false);
                }

                void InitializeMoveTransitionUp()
                {
                    data.SetMoveTransitionUp(false);
                }

                void InitializeDisplayStateEditor()
                {
                    data.SetDisplayStateEditor(false);
                }

                void InitializeEarlyOut()
                {
                    data.SetEarlyOut(false);
                }

                void InitializeToggledIndex()
                {
                    data.SetToggledIndex(0);
                }
            }
Esempio n. 2
0
 //private bool EarlyOut => ReorderState || DisplayStateEditor;
 //private bool EarlyOut => ReorderState || DisplayStateEditor
 internal void Display(StateHeaderDataIn dataIn, out StateHeaderDataOut dataOut)
 {
     data.OnSet(dataIn);
     SetHeader();
     SetHeaderTitle();
     SetHeaderButtons();
     if (!EarlyOut)
     {
         //Layout.EndHorizontal();
     }
     dataOut = data.DataOut;
 }