Esempio n. 1
0
 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;
        }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
 public Dictionary()
 {
     InitializeComponent();
     var acwf = new AutoChangeWindowsFontSize(this, 1920);
 }
Esempio n. 5
0
 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);
 }