Beispiel #1
0
        /// <summary>
        /// frmTTViewer에서 '이 시간표를 기반으로 시간표 만들기'버튼을 누를때 이 함수가 호출됩니다.
        /// </summary>
        public void DoFixedMode(List <TimeElement> subject)
        {
            PushUndo();
            subject_group.Clear();

            List <Bot.SubjectStruct> ssl = new List <Bot.SubjectStruct>();

            foreach (TimeElement tex in subject)
            {
                Bot.SubjectStruct  ss       = bot.subject[Convert.ToInt32(tex.index)];
                List <TimeElement> subjects = new List <TimeElement>();
                TimeElement        te       = TimeParser.Get(ss.시강);
                te.index = ss.index.ToString();
                subjects.Add(te);
                ssl.Add(ss);
                subject_group.Add(subjects);
            }

            lvSearch.Items.Clear();
            AppendSubjectsToList(ssl);
            UpdateCombination();
        }
Beispiel #2
0
 private void AppendSubjectToList(Bot.SubjectStruct ss)
 {
     lvSearch.Items.Add(new ListViewItem(new string[] { ss.index.ToString(),
                                                        ss.필드, ss.학수번호, ss.분반, ss.과목명, ss.학년, ss.학점,
                                                        ss.구분, ss.시강, ss.교수, ss.평가, ss.비고 }));
 }