예제 #1
0
        public void Save(ThreadViewPage page)
        {
            var source = page.Viewmodel.SelectedItem;
            var data   = source.Data;

            PageCount  = data.LastPage;
            Title      = source.Title;
            ThreadID   = source.ThreadID;
            PageNumber = source.PageNumber;
            Html       = source.Html;
            Posts      = source.Posts;

            Draft = page.SavedDraft;

            bool saved = this.SaveToFile(SAVE_FILE);

#if DEBUG
            MessageBox.Show("state saved: " + saved);
#endif
        }
예제 #2
0
        public void Save(ThreadViewPage page)
        {
            var source = page.Viewmodel.SelectedItem;
            var data = source.Data;

            PageCount = data.LastPage;
            Title = source.Title;
            ThreadID = source.ThreadID;
            PageNumber = source.PageNumber;
            Html = source.Html;
            Posts = source.Posts;

            Draft = page.SavedDraft;

            bool saved = this.SaveToFile(SAVE_FILE);

            #if DEBUG
            MessageBox.Show("state saved: " + saved);
            #endif
        }