コード例 #1
0
        private void btnArabic_Click(object sender, RoutedEventArgs e)
        {
            var arabicpage = new Testing();

            arabicpage.Show();
            this.Hide();
        }
コード例 #2
0
        //Testing is the name of Arabic Page



        private void btnArabic_Click(object sender, RoutedEventArgs e)
        {
            mediaPlayer.Stop();
            Settings.Default.destPage = "A";
            Settings.Default.Save();

            Testing Testing = new Testing();

            Testing.Show();
            this.Hide();
        }
コード例 #3
0
        private void btnDone_Click(object sender, RoutedEventArgs e)
        {
            Testing     arabicpage  = new Testing();
            Englishpage englishpage = new Englishpage();

            if (Settings.Default.destPage == "A")
            {
                arabicpage.Show();
                this.Hide();
            }
            if (Settings.Default.destPage == "E")
            {
                englishpage.Show();
                this.Close();
            }
        }
コード例 #4
0
        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            var englishpage = new Englishpage();
            var arabicpage  = new Testing();

            if (Settings.Default.destPage == "E")
            {
                englishpage.Show();
                this.Hide();
            }
            if (Settings.Default.destPage == "A")
            {
                arabicpage.Show();
                this.Hide();
            }
        }