コード例 #1
0
        public int TotalSentinelDays(SentinelDirectorAssistant SentinelDirectorAssistant)
        {
            int sonuç = 0;

            foreach (DirectorAssistantSentinelDay x in DirectorAssistantSentinelDayManager.MdYrdNöbetGünleri)
            {
                if (x.sentinelDirectorAssistant.FullName == SentinelDirectorAssistant.FullName)
                {
                    sonuç++;
                }
            }
            return(sonuç);
        }
コード例 #2
0
        //class method
        public static SentinelDirectorAssistant AdaGöreBul(string pAdSoyad)
        {
            SentinelDirectorAssistant sonuç = null;

            foreach (SentinelDirectorAssistant x in SentinelDirectorAssistantManager.SentinelDirectorAssistantList)
            {
                if (x.FullName == pAdSoyad.Trim())
                {
                    sonuç = x;
                    break;
                }
            }
            return(sonuç);
        }