public wordExplanationWindow(string word) { InitializeComponent(); word = Regex.Replace(word, "[.,']", "", RegexOptions.IgnoreCase); //去除'和.和, word = getSingularNoun(getVerbRoot(word)); //獲得原型動詞與單數 if (Words.Keys.Contains(word)) { var showWordExplain = new ShowWordExplain(word, mainGrid); } else { AddStatus status; addWordData(word, getHTML(word), out status); if (status == AddStatus.SearchFail) { MessageBox.Show($"Yahoo查無此單字:{word}\n"); Close(); } else { var showWordExplain = new ShowWordExplain(word, mainGrid); } } this.word = word; var acwfs = new AutoChangeWindowsFontSize(this, 2880); }
public LocalDataWindow() { InitializeComponent(); updataList(); var autoChangeFontSize = new AutoChangeWindowsFontSize(this, 1920); oldWord = string.Empty; }
public SentencesTest() { InitializeComponent(); var autoChangeFontSize = new AutoChangeWindowsFontSize(this, 1920); foreach (var wordSentences in LocalData.Sentances) { foreach (var sentence in wordSentences.Value) { sentences.Add(sentence); } } sentences = Shuffle(sentences) as List <Sentence>; setTest(); }
public Dictionary() { InitializeComponent(); var acwf = new AutoChangeWindowsFontSize(this, 1920); }
public MainWindow() { InitializeComponent(); LocalData.initialization(); var autoChangeFontSize = new AutoChangeWindowsFontSize(this, 1920); }
public ImportWordWindow() { InitializeComponent(); var autoChangeFontSize = new AutoChangeWindowsFontSize(this, 1920); }
public WordTestWindow() { InitializeComponent(); setTest(); var autoChangeFontSize = new AutoChangeWindowsFontSize(this, 1920); }