private void equipmentNameComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (0 <= equipmentNameComboBox.SelectedIndex) { _CurrentEquipmentType = _AllEquipmentTypes.Where(x => x.EquipmentName == equipmentNameComboBox.Text).First(); my_SelectEquipments = SelectEquipments.UnitAndType; if (loadIsFinished) { frmTagFinder_Load(sender, e); } } }
private void tagComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (0 <= tagComboBox.SelectedIndex) { _CurrentEquipment = _AllEquipments.Where(x => x.Tag == tagComboBox.Text).First(); my_SelectEquipments = SelectEquipments.onlyOneTag; if (loadIsFinished) { frmTagFinder_Load(sender, e); } } }
private void unitNameComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (0 <= unitNameComboBox.SelectedIndex) { _CurrentUnit = _AllUnins.Where(x => x.UnitName == unitNameComboBox.Text).First(); unitImagePictureBox.ImageLocation = _CurrentUnit.ImagePath; my_SelectEquipments = SelectEquipments.UnitSelected; if (loadIsFinished) { frmTagFinder_Load(sender, e); } } }