Ejemplo n.º 1
0
        private void ShowCargo(int Id)
        {
            cargo Cargo = Functions.FindCargo(Id);

            name.Text    = Cargo.Name;
            type.Text    = Cargo.Type;
            comment.Text = Cargo.Comment;
            if (Functions.FindStringIndex(Types, Cargo.Type) < 0)
            {
                type.Text = Cargo.Type;
            }
            else
            {
                type.Text = TypesPL[Functions.FindStringIndex(Types, Cargo.Type)];
            }
            adr.Checked = Boolean.Parse(Cargo.ADR);
            Boolean[] adrClass = Functions.ExpADR(Cargo.ADR_Class);
            foreach (var item in CheckBoxList)
            {
                item.Checked = adrClass[(int)item.Tag];
            }
        }