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(); } }
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(); } }