Esempio n. 1
0
        private void xPlatformTypeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            xDriverTypeComboBox.SelectedItem = null;
            xDriverTypeComboBox.Items.Clear();
            mWizard.Agent.Platform = (GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib.ePlatformType)Enum.Parse(typeof(GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib.ePlatformType), xPlatformTypeComboBox.SelectedValue.ToString());
            DriversforPlatform     = DriverInfo.GetDriversforPlatform(xPlatformTypeComboBox.SelectedValue.ToString());

            foreach (DriverInfo driverInfo in DriversforPlatform)
            {
                xDriverTypeComboBox.Items.Add(driverInfo);
            }

            if (xDriverTypeComboBox.Items.Count > 0)
            {
                //mWizard.Agent.DriverInfo = DriversforPlatform[0];
                xDriverTypeComboBox.SelectedItem = xDriverTypeComboBox.Items[0];
            }
        }