public void UpdateFileList()
    {
        _files = Directory.GetFiles(Application.streamingAssetsPath, "*.mat");

        List <string> _fileList = new List <string>();

        for (int i = 0; i < _files.Length; i++)
        {
            string[] temp = _files[i].Split(Path.DirectorySeparatorChar);
            _fileList.Add(temp[temp.Length - 1]);
        }

        fileSelectionDropDown.SetAvailableOptions(_fileList);
        fileSelectionDropDown.ItemsToDisplay = _fileList.Count;
    }
示例#2
0
    private void ShowNameCombox()
    {
        List <Bill>   bills   = BillList.Instance.Bills;
        List <string> allName = new List <string>();

        foreach (var b in bills)
        {
            if (!allName.Contains(b.CustomerName))
            {
                allName.Add(b.CustomerName);
            }
        }
        cbName.SetAvailableOptions(allName);
        cbName.ItemsToDisplay = 5;
    }