Exemplo n.º 1
0
        private void CB_Conveyor_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (CB_Conveyor.SelectedItem != null && CB_Conveyor.SelectedItem.ToString() != "")
            {
                string[] data = db.GetConveyorInfor(CB_Conveyor.SelectedItem.ToString());

                if (data != null && data.Length > 10)
                {
                    CB_Commun.Checked = (data[3] != null && data[3].ToUpper() == "TRUE") ? true : false;
                }
            }
        }