private void LoadPhoto() { WaitSplash.Show(this, "Loading photos from server..."); if (!Properties.Settings.Default.First_Execution) { if (Properties.Settings.Default.Black_List_save != null) { PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos().Where(P => Properties.Settings.Default.Black_List_save.IndexOf(P.OwnerId.ToString()) == -1).ToList()); } else { PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos()); } } else { PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos()); } WaitSplash.Hide(); //WaitSplash.Show(this, "Loading photos from server..."); //// PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos().Where(P => Black_Liste.IndexOf(P.OwnerId)==-1).ToList()); //// PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos()); //PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos().Where(P => Properties.Settings.Default.Black_List_save.IndexOf(P.OwnerId.ToString()) == -1).ToList()); //WaitSplash.Hide(); }
private void Slideshow_Shown(object sender, EventArgs e) { WaitSplash.Show(this, "Loading photos from server..."); photos = DBPhotosWebServices.GetAllPhotos(); //photos = DBPhotosWebServices.GetAllPhotos().Where(p=>bl.IndexOf(p.OwnerId)==-1).ToList(); WaitSplash.Hide(); }
private void MainForm_Shown(object sender, EventArgs e) { // Get server attention... WaitSplash.Show(this, "Connecting to Photo Manager..."); string bidon = DBPhotosWebServices.GetServerImagesURLBase(); WaitSplash.Hide(); Update_UI(); }
private void Submit_Task() { WaitSplash.Show(this, "Login..."); Logged_User = DBPhotosWebServices.Login(TBX_UserName.Text, TBX_Password.Text); if (CB_REMBEMBER.Checked) { Properties.Settings.Default.Password = TBX_Password.Text; Properties.Settings.Default.UserName = TBX_UserName.Text; Properties.Settings.Default.Save(); } WaitSplash.Hide(); }
public static void OuvrirConnexion(Form callerForm) { try { WaitSplash.Show(callerForm, "Connexion à la base de donnée..."); Connexion.Open(); Categories = Categorie.ChargerToutes(); MAX_POINTS_TOTAL = Categories.Count * Categorie.GAGNER_NBPOINTS; Joueurs = Joueur.ChargerTous(); InitPointages(); WaitSplash.Hide(); } catch (Exception exception) { MessageBox.Show(exception.Message); } }
void ConnectionStateChanged(Microsoft.AspNet.SignalR.Client.StateChange state) { Invoke(new Action(() => btnConnect.Text = state.NewState.ToString())); ActiveControls(state.NewState == Microsoft.AspNet.SignalR.Client.ConnectionState.Connected); if (state.OldState == ConnectionState.Reconnecting && state.NewState == ConnectionState.Disconnected) { WaitSplash.DockOnControlThreadSafe(this); } else if (state.NewState == ConnectionState.Reconnecting) { WaitSplash.DockOnControlThreadSafe(this); } else if (state.NewState == ConnectionState.Connected) { WaitSplash.Hide(); } }
// Définir l'ordre des photos private void SetPhotosOrder() { WaitSplash.Show(this, "Setting photo order..."); Current_PhotosOrder_Index = 0; int nb_Photos = SlideShowList.Count; PhotosOrder = new int[nb_Photos]; // Ordre séquentiel for (int i = 0; i < nb_Photos; i++) { PhotosOrder[i] = i; } if (RandomOrder) { // Ordre aléatoire ShufflePhotosOrder(); } WaitSplash.Hide(); // Affichier la première photo Next(); }
private void Diaporama_Shown(object sender, EventArgs e) { WaitSplash.Show(this, "Loading slide show photos..."); Slides = new List <Photo>(); // PhotoPool = new List<Photo>(); foreach (int photoId in SlideShowList) { // Obtenir la photo du service Photo photo = DBPhotosWebServices.GetPhoto(photoId); if (photo != null) { if (bl.IndexOf(photo.OwnerId) == -1) { Slides.Add(photo); } } } WaitSplash.Hide(); // Définir l'ordre des photos SetPhotosOrder(); // Démarrer l'horloge SlideshowTimer.Start(); }
private void LoadPhoto() { WaitSplash.Show(this, "Loading photos from server..."); PhotoBrowser.LoadPhotos(PhotoFilter.GetPhotos(), Blacklist); WaitSplash.Hide(); }
private void Submit_Task() { WaitSplash.Show(this, "Login..."); Logged_User = DBPhotosWebServices.Login(TBX_UserName.Text, TBX_Password.Text); WaitSplash.Hide(); }
private void ManageSlideShow_Shown(object sender, EventArgs e) { WaitSplash.Show(this, "Loading photos..."); Load_Photos(); WaitSplash.Hide(); }