C# Class Studyzy.LearnEnglishBySubtitle.Forms.MainForm

ファイルを表示 Open project: studyzy/LearnEnglishBySubtitle

Public Methods

Method Description
MainForm ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BaiduToolStripMenuItem_Click ( object sender, EventArgs e ) : void
BuildSubtitleFromGrid ( ) : Subtitle
GoogleToolStripMenuItem_Click ( object sender, EventArgs e ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadConfig ( ) : void
MainForm_DragDrop ( object sender, DragEventArgs e ) : void
MainForm_DragEnter ( object sender, DragEventArgs e ) : void
MainForm_Load ( object sender, EventArgs e ) : void
MicrosoftToolStripMenuItem_Click ( object sender, EventArgs e ) : void
PickNewWords ( ICollection subtitles ) : SubtitleWord>.IDictionary

找到字幕中的生词,先进行分词,然后取每个单词的原型,然后看每个单词是否认识,认识则跳过,不认识则注释。

PreviewToolStripMenuItem_Click ( object sender, EventArgs e ) : void
PronunciationSetupToolStripMenuItem_Click ( object sender, EventArgs e ) : void
ReadAndShowSubtitle ( ) : void
RemarkSubtitle ( IList words ) : void

在保存用户认识和不认识的词后将不认识的词传回来,对字幕进行注释

ReplaceSubtitleLineByVocabulary ( string line, SubtitleWord>.IDictionary words ) : string

将一个句子中的生词进行注释

SentenceTranslateToolStripMenuItem_Click ( object sender, EventArgs e ) : void
ShowMessage ( string message ) : void
ShowSubtitleText ( ICollection srts, bool withMean = false ) : void
ToolStripMenuItemAbount_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemDictionaryConfig_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemDonate_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemFilterChinese_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemHelp_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemLastVersion_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemMeanStyleConfig_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemShortMean_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemUserVocabularyConfig_Click ( object sender, EventArgs e ) : void
ToolStripMenuItemUserVocabularyMgt_Click ( object sender, EventArgs e ) : void
YoudaoToolStripMenuItem_Click ( object sender, EventArgs e ) : void
backgroundLoadDictionary_DoWork ( object sender, DoWorkEventArgs e ) : void
backgroundLoadDictionary_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
btnParse_Click ( object sender, EventArgs e ) : void
btnRemark_Click ( object sender, EventArgs e ) : void
btnSave_Click ( object sender, EventArgs e ) : void
dgvSubtitleSentence_Resize ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

MainForm() public method

public MainForm ( ) : System
return System