public AddBackgroundTransfer() { InitializeComponent(); // Bind the list of URLs to the ListBox. // URLListBox.ItemsSource = urls; LnaguageClass.GuranAya(LnaguageClass.OtherFolderName); ListAuther65.ItemsSource = null; ListAuther65.ItemsSource = LnaguageClass.ListAyaRanage; // Make sure that the required "/shared/transfers" directory exists // in isolated storage. using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication()) { if (!isoStore.DirectoryExists("/shared/transfers/")) { isoStore.CreateDirectory("/shared/transfers/"); } } if (LnaguageClass.LanguageSelect == 1) { txtonlywifi.Text = "تنزيل فقط في حالة توف شبكات واي فاي"; txtExternal.Text = "تنزيل فقط عندما يكون الهاتف متصل بمصدر طاقة خارجية"; } }
protected override void OnNavigatedTo(NavigationEventArgs e) { //=========== setup background image to button // ImageBrush background = new ImageBrush(); // background.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri(@"/ImageSetting/img_btn_forward.png", UriKind.Relative)); // Forword.Background = background; //====================== string contents; NavigationContext.QueryString.TryGetValue("ServerName", out contents); string[] OneAya = contents.Split('*'); RealServerFolder = OneAya[0]; int newaya = Convert.ToInt32(OneAya[1]); LnaguageClass.OtherFolderName = RealServerFolder; LnaguageClass.GuranAya(RealServerFolder); ListAuther65.ItemsSource = null; ListAuther65.ItemsSource = LnaguageClass.ListAyaRanage; //LnaguageClass.AutherList(); //GetArrayDat(); if (LnaguageClass.ISBackgroundMusic != 2) { if ((PlayState.Playing == BackgroundAudioPlayer.Instance.PlayerState) || (PlayState.Paused == BackgroundAudioPlayer.Instance.PlayerState)) { LnaguageClass.ISBackgroundMusic = 3; BackgroundAudioPlayer.Instance.Stop(); } } SelectedForPlay(newaya); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Recities); //set timer LnaguageClass recitesn = new LnaguageClass(); tableItems = recitesn.GuranAya(Intent.GetStringExtra("Recites")); ListView listView = FindViewById <ListView>(Resource.Id.listView1); listView.Adapter = new HomeScreenAdapter(this, tableItems); listView.ItemClick += OnListItemClick; // to be defined }