Пример #1
0
 public Destination(DateTime p_heureTransfer, CodeDestination p_codeDestination, string p_remarque, string p_numeroDossier, int?p_matriculeDossier)
 {
     HeureTransfer     = p_heureTransfer;
     CodeDestination   = p_codeDestination;
     Remarque          = p_remarque;
     NumeroDossier     = p_numeroDossier;
     MatriculePolicier = p_matriculeDossier;
 }
Пример #2
0
        // Donner une couleur selon destination du dossier
        private Color PickColorForDossierRow(CodeDestination p_codeDes)
        {
            Color c;

            switch (p_codeDes)
            {
            case CodeDestination.ARC: labelARC.BackColor = c = Color.FromArgb(149, 149, 142); break;

            case CodeDestination.ATT: labelATT.BackColor = c = Color.FromArgb(210, 214, 128); break;

            case CodeDestination.BEC: labelBEC.BackColor = c = Color.FromArgb(131, 169, 71); break;

            case CodeDestination.RED: labelRED.BackColor = c = Color.FromArgb(97, 195, 162); break;

            case CodeDestination.REV: labelREV.BackColor = c = Color.FromArgb(240, 211, 154); break;

            case CodeDestination.SD:  labelSD.BackColor = c = Color.FromArgb(220, 122, 122); break;

            default: c = Color.White; break;
            }
            return(c);
        }