예제 #1
0
        public bool Contains(OffDateCollection values)
        {
            foreach (OffDate c in values)
            {
                if (Contains(c))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
        public FormJourFerier(OffDateCollection col, Config appconfig)
        {
            InitializeComponent();

            _ColOffDate = col;
            _AppConfig  = appconfig;

            LoadDateList();

            //Calendrier
            monthCalendar1.TodayDate      = DateTime.Now;
            monthCalendar1.SelectionRange = new Voroshkov.Calendar.DateSelectionRange(DateTime.Now, DateTime.Now);
            monthCalendar1.SelectionStart = monthCalendar1.SelectionEnd = DateTime.Now;
        }
예제 #3
0
        //Test multi thread
        //Thread _threadBolded = null;

        public FormHoraire(CustomerCollection ClientList, OffDateCollection OffDateList, EmployeCollection ListEmploye, FormMain formMain, PostItCollection PostItList)
        {
            InitializeComponent();

            //FormMain
            _formMain = formMain;

            //Control client
            clientControl1.ListeEmploye = ListEmploye;

            //Liste de client
            _ClientList = ClientList;

            //Notes
            _ColPostIt = PostItList;

            //Liste d'employe
            _ColEmploye = ListEmploye;
            LoadListEmploye();
            if (cbEmploye.Items.Count > 0)
            {
                cbEmploye.SelectedIndex = 0;
            }

            //Date du jour
            vCalendar.SelectionStart = DateTime.Now;
            vCalendar.Date           = DateTime.Now;

            //jour férié
            _ColJourFerier = OffDateList;
            UpdateBoldedDate();

            //Initialise l'horaire de la semaine
            InitialiseWeekSchedule();

            //Calendrier
            vCalendar.TodayDate      = DateTime.Now;
            vCalendar.SelectionRange = new Voroshkov.Calendar.DateSelectionRange(DateTime.Now, DateTime.Now);
            vCalendar.SelectionStart = vCalendar.SelectionEnd = DateTime.Now;
            vCalendar.Date           = DateTime.Now;
            SetDate();
            //CreateBoldedDateFromCustomer();
        }