public static TextInsertWindow GetTextInsertWin(TextListObject txtObj) { if (textInsertWin is null) { textInsertWin = new TextInsertWindow(); } textInsertWin.insertTextTxtBox.Focus(); textInsertWin.txtObj = txtObj; textInsertWin.insertPosition = App.TaggingJobWin.corpusListSt.Children.IndexOf(txtObj); textInsertWin.dataPosition = App.TaggingJobWin.TextList.IndexOf(txtObj); return(textInsertWin); }
private void InsertNewTextBtnClick() { App.TextInsertWin = TextInsertWindow.GetTextInsertWin(corpusListSt.Children[selectTextIndex] as TextListObject); App.TextInsertWin.Show(); }