예제 #1
0
            public void AddToList(IDockContent content)
            {
                if (ListContent.Contains(content) || IsInActiveList(content))
                {
                    return;
                }

                ListContent.Add(content);
            }
예제 #2
0
        protected override void InitResultHandler(MySqlDataReader re)
        {
            while (re.Read())
            {
                Paper paper = new Paper()
                {
                    Name     = (string)GetObjectFromReader("name", re),
                    Location = (string)GetObjectFromReader("location", re),
                    Date     = (string)GetObjectFromReader("date", re),
                };

                ListContent.Add(paper);
            }
        }
예제 #3
0
        protected override void InitResultHandler(MySqlDataReader re)
        {
            while (re.Read())
            {
                ServiceCommon v = new ServiceCommon()
                {
                    Title   = (string)GetObjectFromReader("title", re),
                    Content = (string)GetObjectFromReader("content", re),
                    Remark  = (string)GetObjectFromReader("Remark", re),
                    Time    = (string)GetObjectFromReader("date", re),
                };

                ListContent.Add(v);
            }
        }
예제 #4
0
 protected override void InitResultHandler(MySqlDataReader re)
 {
     while (re.Read())
     {
         Video v = new Video
         {
             Location  = (string)GetObjectFromReader("location", re),
             VideoType = (string)GetObjectFromReader("type", re),
             Date      = (string)GetObjectFromReader("date", re),
             ImgFile   = (string)GetObjectFromReader("imgFile", re),
             VideoName = (string)GetObjectFromReader("videoName", re),
             TimeLen   = (string)GetObjectFromReader("time_len", re),
         };
         ListContent.Add(v);
     }
 }
예제 #5
0
파일: NewsContext.cs 프로젝트: YaoKaina/ixf
 protected override void InitResultHandler(MySqlDataReader re)
 {
     while (re.Read())
     {
         News item = new News
         {
             Content   = (string)GetObjectFromReader("Content", re),
             Url       = (string)GetObjectFromReader("Url", re),
             Style     = (string)GetObjectFromReader("Style", re),
             Type      = (string)GetObjectFromReader("Type", re),
             IssueDate = (string)GetObjectFromReader("IssueDate", re),
             Remark    = (string)GetObjectFromReader("remark", re)
         };
         ListContent.Add(item);
     }
 }
예제 #6
0
        protected override void InitResultHandler(MySqlDataReader re)
        {
            while (re.Read())
            {
                ServiceQuestion question = new ServiceQuestion()
                {
                    Subject  = (string)GetObjectFromReader("subject", re),
                    UserName = (string)GetObjectFromReader("user_name", re),
                    Mail     = (string)GetObjectFromReader("mail", re),
                    Content  = (string)GetObjectFromReader("content", re),
                    Reply    = (string)GetObjectFromReader("reply", re),
                    Time     = (string)GetObjectFromReader("date", re),
                };

                ListContent.Add(question);
            }
        }
예제 #7
0
 protected override void InitResultHandler(MySqlDataReader re)
 {
     while (re.Read())
     {
         Company item = new Company()
         {
             Type     = (string)GetObjectFromReader("Type", re),
             Name     = (string)GetObjectFromReader("Name", re),
             Date     = (string)GetObjectFromReader("Date", re),
             Address  = (string)GetObjectFromReader("Address", re),
             Tel      = (string)GetObjectFromReader("Tel", re),
             Email    = (string)GetObjectFromReader("Email", re),
             WebSite  = (string)GetObjectFromReader("WebSite", re),
             Province = (string)GetObjectFromReader("Province", re),
             Grade    = (string)GetObjectFromReader("Grade", re),
             Scope    = (string)GetObjectFromReader("Scope", re),
             Scale    = (string)GetObjectFromReader("Scale", re)
         };
         ListContent.Add(item);
     }
 }