Example #1
0
 public static StudyManager StudyManagerInstance(string _url,string _blogid, string _id, string _pw, string _postid)
 {
     if( SM == null)
     {
         SM = new StudyManager(_url,_blogid,_id,_pw,_postid);
     }
     return SM;
 }
Example #2
0
 private Boolean CheckInstanceStudyManager()
 {
     if (SingleTon.StudyManagerInstance() == null)
     {
         if (LoadBlogInfo() == false)
         {
             return false;
         }
     }
     Smanager = SingleTon.StudyManagerInstance(blog.blogUrl, blog.blogid, blog.id, blog.pw, blog.postid);
     return true;
 }
Example #3
0
        private void UpdateListView()
        {
            this.listView1.BeginUpdate();
            listView1.Clear();
            this.listView1.View = View.Details;
            this.listView1.Columns.Add("StudyName", 100, HorizontalAlignment.Left);
            this.listView1.Columns.Add("AllTime", 80, HorizontalAlignment.Left);

            StudyManager = SingleTon.StudyManagerInstance();
            List<Study> sl = StudyManager.GetStudyList();

            foreach (Study tmp in sl)
            {
                ListViewItem lvi = new ListViewItem(tmp.StudyName);
                string TotalTime = String.Format("{0:00}:{1:00}:{2:00}", tmp.hours, tmp.minuits, tmp.seconds);
                lvi.SubItems.Add(TotalTime);

                listView1.Items.Add(lvi);

            }
            this.listView1.EndUpdate();
        }