Esempio n. 1
0
    private void Init()
    {
        m_ToolBarModel = gameObject.GetComponent <ToolBarModel>();
        m_ToolBarView  = gameObject.GetComponent <ToolBarView>();

        slotList  = new List <GameObject>();
        modelList = new Dictionary <GameObject, GameObject>();
    }
Esempio n. 2
0
        public void BuildToolBars(IToolBars result)
        {
            var toolBars = _toolBars.OrderBy(x => x.SortOrder);

            foreach (var toolBar in toolBars)
            {
                var toolBarModel = new ToolBarModel();
                BuildToolBar(toolBar, toolBarModel);
                if (toolBarModel.Any())
                    result.Items.Add(toolBarModel);
            }
        }
Esempio n. 3
0
        public void BuildToolBars(IToolBars result)
        {
            var toolBars = _toolBars.OrderBy(x => x.SortOrder);

            foreach (var toolBar in toolBars)
            {
                var toolBarModel = new ToolBarModel();
                BuildToolBar(toolBar, toolBarModel);
                if (toolBarModel.Any())
                {
                    result.Items.Add(toolBarModel);
                }
            }
        }