Esempio n. 1
0
        private void InitializeComboBox()
        {
            // Load machine list data and assign to combobox
            List <string> machineData = SqliteDataAcces.LoadListData("Machine", "Tools");

            machineData = machineData.OrderBy(q => q).Distinct().ToList();
            machineComboBox.ItemsSource = machineData;

            // Load type list data and assign to combobox
            List <string> typeData = SqliteDataAcces.LoadComboBoxData("Type", "Machine", machineComboBox.Text);

            typeData = typeData.OrderBy(q => q).Distinct().ToList();
            typeComboBox.ItemsSource = typeData;

            // Load type list data and assign to combobox
            List <string> functionData = SqliteDataAcces.LoadComboBoxData("Function", "Type", typeComboBox.Text);

            functionData = functionData.OrderBy(q => q).Distinct().ToList();
            functionComboBox.ItemsSource = functionData;
        }