This commit is contained in:
owenchen committed 2026-06-23 15:32:12 +08:00
1 parent 996bb243df
commit 5f1062c010
15 files changed
+769 -104

No files matched your search

+6 -1
View File
@@ -103,6 +103,7 @@ namespace CloudBuilder.AI.Gui
private void InitComBox()
{
statusCombo.SetDataSource(bookStatusPolicy.GetDataSource(), true);
bookPersonGv.SetColumnDataSource(bookActorNameCol, SoVITSTtsVoicePolicy.GetInstance().GetComposeMessages(), true);
}
/// <summary>
/// DataGridView分页控件初始化
@@ -132,9 +133,11 @@ namespace CloudBuilder.AI.Gui
authorTxt.Set(AiBookEntity.AUTHOR);
bookTypeTxt.Set(AiBookEntity.BOOK_TYPE);
filePathTxt.Set(AiBookData.FILE_NAME, EnumEditModeColor.ReadOnly);
bookPersonNameCol.Set(EnumEditModeColor.ReadOnly);
dataGv.InitColumn(false, false);
sentenceGv.InitColumn(true, false);
bookPersonGv.InitColumn(true, false);
guiOperateHelper = new GuiOperateHelper();
}
@@ -285,6 +288,7 @@ namespace CloudBuilder.AI.Gui
private void PackUIToEntity()
{
guiBindingContext.DataPack();
data.AiBookPersons = bookPersonGv.GetUpdateRows<AiBookPersonEntity>();
}
private bool SaveValidate()
@@ -416,6 +420,7 @@ namespace CloudBuilder.AI.Gui
private void PackEntityToUI()
{
guiBindingContext.DataBind(data.AiBook, this);
bookPersonGv.SetDataSource(data.AiBookPersons);
filePathTxt.Text = data.FileName;
@@ -752,7 +757,7 @@ namespace CloudBuilder.AI.Gui
AiChapterEntity chapter = dataGv.GetRowData<AiChapterEntity>(dataGv.SelectedCells[0].RowIndex);
AiSentenceViewEntity[] aiSentences = aiSentenceRequest.FindByChapterId(chapter.ChapterId);
AiSentenceViewEntity[] aiSentences = aiSentenceRequest.FindByChapterId(chapter.BookId, chapter.ChapterId);
sentenceGv.SetDataSource(aiSentences);
}