public SlotCopy(ComboboxItem[] names) { InitializeComponent(); SlotFunctions.SlotMagic(names, comboBoxSource, comboBoxDestination); ; //foreach (var t in names.Where(t => !Text.ToLower().EndsWith("0a"))) //{ // comboBoxSource.Items.Add(t); // comboBoxDestination.Items.Add(t); //} //if (comboBoxSource.Items.Count > -1) // comboBoxSource.SelectedIndex = 0; //if (comboBoxDestination.Items.Count > -1) // comboBoxDestination.SelectedIndex = 0; }
public SlotCopy(string[] names) { InitializeComponent(); SlotFunctions.SlotMagic(names, comboBoxSource, comboBoxDestination); //foreach (var name in names.Where(n => !n.ToLower().EndsWith("0a"))) //{ // comboBoxSource.Items.Add(name); // comboBoxDestination.Items.Add(name); //} //if (comboBoxSource.Items.Count > 0) //{ // comboBoxSource.SelectedIndex = 0; // comboBoxDestination.SelectedIndex = 0; //} }