private void BindTaskPriority()
    {
        List <string> pList = EnumMapping.ListAll <TaskPriority>();

        pList.Insert(0, "全部");
        YXJList.Clear();
        YXJList.OnItemClicked = YXJItem_OnClicked;
        YXJList.BindData <string>("TextItem", pList, (i, e) =>
        {
            i.name = "TextItem_" + e;
            i.transform.Find("Name").GetComponent <Text>().text = e;
        }, true, true);
    }
Exemple #2
0
    void InitUI()
    {
        TaskState.options.Clear();
        foreach (var item in ProjectStepList)
        {
            TaskState.options.Add(new Dropdown.OptionData(item.Name));
        }

        TaskPriority.options.Clear();
        foreach (string item in EnumMapping.ListAll <TaskPriority>())
        {
            TaskPriority.options.Add(new Dropdown.OptionData(item));
        }
    }