private void addSource_Click(object sender, RoutedEventArgs e) { if (EditedDiscussion == null) { return; } DaoUtils.EnsureBgExists(EditedDiscussion); DaoUtils.AddSource(EditedDiscussion.Background); }
public void SaveChanges() { Discussion discussion = DataContext as Discussion; if (discussion != null) { DaoUtils.EnsureBgExists(discussion); //discussion.Background.Text = txtBxBackground.Text; } }
private void SaveDiscussion() { if (_d == null) { return; } DaoUtils.EnsureBgExists(_d); _d.Background.Text = ""; _d.HtmlBackground = plainHtml.Text; PublicBoardCtx.Get().SaveChanges(); }