void GetPosition()
    {
        FileLibrary2Position listModul = new FileLibrary2Position();

        DdlPosition.Items.Clear();
        for (int i = 0; i < listModul.Text.Length; i++)
        {
            DdlPosition.Items.Add(new ListItem(listModul.Text[i], listModul.Values[i]));
        }
    }
Beispiel #2
0
    string SetPosition(string value)
    {
        string s = "_";
        FileLibrary2Position listModul = new FileLibrary2Position();

        for (int i = 0; i < listModul.Values.Length; i++)
        {
            if (listModul.Values[i] == value)
            {
                s = listModul.Text[i];
                break;
            }
        }
        return(s);
    }