Exemple #1
0
 private void showEnglish()
 {
     timeLeft       = englishTimeLeft;
     TimeLabel.Text = timeLeft.ToString();
     EnglishLabel.Show();
     isEnglishShowed = true;
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();

            Encoding.GetEncoding("gb2312");
            String[] lines = System.IO.File.ReadAllLines(@"texts/Words.txt", Encoding.Default);

            foreach (String line in lines)
            {
                char[]   spliteChar     = { ':' };
                string[] wordOfThisLine = line.Split(spliteChar);
                if (wordOfThisLine.Length <= 1)
                {
                    char[] spliteChar2 = { ':' };
                    wordOfThisLine = line.Split(spliteChar2);
                }

                if (wordOfThisLine.Length > 1)
                {
                    englishWords.Add(wordOfThisLine[0]);
                    english.Add(wordOfThisLine[0]);
                    chineseWords.Add(wordOfThisLine[1]);
                    chinese.Add(wordOfThisLine[1]);
                }
            }

            orderOfPrevious = previousChineseWords.Length - 1;
            EnglishLabel.Hide();
        }
Exemple #3
0
 private void hideEnglish()
 {
     timeLeft       = chineseTimeLeft;
     TimeLabel.Text = timeLeft.ToString();
     EnglishLabel.Hide();
     isEnglishShowed = false;
 }
Exemple #4
0
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

            if (ChooseLanguageHeaderLbl != null)
            {
                ChooseLanguageHeaderLbl.Dispose();
                ChooseLanguageHeaderLbl = null;
            }

            if (ContentLabel != null)
            {
                ContentLabel.Dispose();
                ContentLabel = null;
            }

            if (ContentLabelOne != null)
            {
                ContentLabelOne.Dispose();
                ContentLabelOne = null;
            }

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

            if (Header != null)
            {
                Header.Dispose();
                Header = null;
            }

            if (HeaderLabel != null)
            {
                HeaderLabel.Dispose();
                HeaderLabel = null;
            }

            if (BokmalButton != null)
            {
                BokmalButton.Dispose();
                BokmalButton = null;
            }

            if (BokmalLabel != null)
            {
                BokmalLabel.Dispose();
                BokmalLabel = null;
            }

            if (NynorskButton != null)
            {
                NynorskButton.Dispose();
                NynorskButton = null;
            }

            if (NynorskLabel != null)
            {
                NynorskLabel.Dispose();
                NynorskLabel = null;
            }

            if (EnglishButton != null)
            {
                EnglishButton.Dispose();
                EnglishButton = null;
            }

            if (EnglishLabel != null)
            {
                EnglishLabel.Dispose();
                EnglishLabel = null;
            }

            if (PolishButton != null)
            {
                PolishButton.Dispose();
                PolishButton = null;
            }

            if (PolishLabel != null)
            {
                PolishLabel.Dispose();
                PolishLabel = null;
            }

            if (SomaliButton != null)
            {
                SomaliButton.Dispose();
                SomaliButton = null;
            }

            if (SomaliLabel != null)
            {
                SomaliLabel.Dispose();
                SomaliLabel = null;
            }

            if (TigrinyaButton != null)
            {
                TigrinyaButton.Dispose();
                TigrinyaButton = null;
            }

            if (TigrinyaLabel != null)
            {
                TigrinyaLabel.Dispose();
                TigrinyaLabel = null;
            }

            if (ArabicButton != null)
            {
                ArabicButton.Dispose();
                ArabicButton = null;
            }

            if (ArabicLabel != null)
            {
                ArabicLabel.Dispose();
                ArabicLabel = null;
            }

            if (LithuanianButton != null)
            {
                LithuanianButton.Dispose();
                LithuanianButton = null;
            }

            if (LithuanianLabel != null)
            {
                LithuanianLabel.Dispose();
                LithuanianLabel = null;
            }

            if (UrduButton != null)
            {
                UrduButton.Dispose();
                UrduButton = null;
            }

            if (UrduLabel != null)
            {
                UrduLabel.Dispose();
                UrduLabel = null;
            }

            if (RestartAppLabl != null)
            {
                RestartAppLabl.Dispose();
                RestartAppLabl = null;
            }

            if (SmittestopLinkButtonLbl != null)
            {
                SmittestopLinkButtonLbl.Dispose();
                SmittestopLinkButtonLbl = null;
            }

            if (SmittestopLinkButtonStackView != null)
            {
                SmittestopLinkButtonStackView.Dispose();
                SmittestopLinkButtonStackView = null;
            }

            if (switchButton != null)
            {
                switchButton.Dispose();
                switchButton = null;
            }
        }