コード例 #1
0
        private void triggerStuff()
        {
            EtatsLecture.ForEach(x => x.SuspendPing = true);
            CACs.ForEach(x => x.SuspendPing         = true);

            EtatsLecture.ForEach(x => x.EstSelectionne = x.EstSelectionne);
            CACs.ForEach(x => x.EstSelectionne         = x.EstSelectionne);

            EtatsLecture.ForEach(x => x.SuspendPing = false);
            CACs.ForEach(x => x.SuspendPing         = false);
        }
コード例 #2
0
        //radio - EtatLecture
        private void EtatLecture_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            //pcc
            if (CACs[0].SuspendPing == false && ((SubElementZ)sender).EstSelectionne == true)
            {
                CACs.ForEach(x => x.SuspendPropertyChange = true);

                CACs.ForEach(x => x.EstSelectionne = false);
                CACs.First(x => x.num == ((SubElementZ)sender).num).EstSelectionne = true;

                CACs.ForEach(x => x.SuspendPropertyChange = false);

                triggerStuff();
            }
        }
コード例 #3
0
        //private bool exit = false;
        //cb - CAC
        private void CAC_PropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            if (EtatsLecture[0].SuspendPing == false)
            {
                CACs.ForEach(x => x.SuspendPropertyChange         = true);
                EtatsLecture.ForEach(x => x.SuspendPropertyChange = true);

                List <SubElementZ> subElementZs = EtatsLecture.Where(x => x.EstSelectionne == true).ToList();
                EtatsLecture.ForEach(x => x.EstSelectionne = false);
                EtatsLecture.First(x => x.num == ((SubElementY)sender).num).EstSelectionne = true;

                CACs.ForEach(x => x.SuspendPropertyChange         = false);
                EtatsLecture.ForEach(x => x.SuspendPropertyChange = false);

                triggerStuff();
            }
        }