private void Init() { m_ToolBarModel = gameObject.GetComponent <ToolBarModel>(); m_ToolBarView = gameObject.GetComponent <ToolBarView>(); slotList = new List <GameObject>(); modelList = new Dictionary <GameObject, GameObject>(); }
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); } }
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); } } }