Exemplo n.º 1
0
        private void addSource_Click(object sender, RoutedEventArgs e)
        {
            if (EditedDiscussion == null)
            {
                return;
            }

            DaoUtils.EnsureBgExists(EditedDiscussion);
            DaoUtils.AddSource(EditedDiscussion.Background);
        }
Exemplo n.º 2
0
        public void SaveChanges()
        {
            Discussion discussion = DataContext as Discussion;

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

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