예제 #1
0
        private void addSource_Click(object sender, RoutedEventArgs e)
        {
            if (EditedDiscussion == null)
            {
                return;
            }

            DaoUtils.EnsureBgExists(EditedDiscussion);
            DaoUtils.AddSource(EditedDiscussion.Background);
        }
예제 #2
0
        public void SaveChanges()
        {
            Discussion discussion = DataContext as Discussion;

            if (discussion != null)
            {
                DaoUtils.EnsureBgExists(discussion);
                //discussion.Background.Text = txtBxBackground.Text;
            }
        }
예제 #3
0
        private void SaveDiscussion()
        {
            if (_d == null)
            {
                return;
            }

            DaoUtils.EnsureBgExists(_d);
            _d.Background.Text = "";
            _d.HtmlBackground  = plainHtml.Text;
            PublicBoardCtx.Get().SaveChanges();
        }