예제 #1
0
 private void Setup_Logged_User()
 {
     if (Logged_User != null)
     {
         blacklistToolStripMenuItem.Enabled = true;
         AddNewPhoto.Enabled         = true;
         AddNewPhoto.BackgroundImage = Properties.Resources.ICON_Add_Neutral;
         Text        = "Photo Manager Client application -" + Logged_User.Name;
         PhotoFilter = new PhotoFilter(Logged_User.Id);
         Init_UsersList();
         initializing = true;
         LoadPhoto();
         Init_Keywords_List();
         initializing = false;
     }
     else
     {
         blacklistToolStripMenuItem.Enabled = false;
         AddNewPhoto.Enabled = false;
         CBX_UsersList.Items.Clear();
         CBX_Keywords.Items.Clear();
         PhotoBrowser.Clear();
         PhotoFilter = null;
     }
     Update_UI();
 }
예제 #2
0
        private void Setup_Logged_User()
        {
            if (Logged_User != null)
            {
                Text        = "Photo Manager Client application -" + Logged_User.Name;
                PhotoFilter = new PhotoFilter(Logged_User.Id);
                Init_UsersList();
                initializing = true;
                LoadPhoto();
                Init_Keywords_List();
                initializing = false;

                FB_Ajout.Enabled     = true;
                FB_Masquer.Enabled   = true;
                FB_Modifier.Enabled  = true;
                FB_Supprimer.Enabled = true;
            }
            else
            {
                CBX_UsersList.Items.Clear();
                CBX_Keywords.Items.Clear();
                PhotoBrowser.Clear();
                PhotoFilter = null;
            }
            Update_UI();
        }
예제 #3
0
        private void ListToBrowser()
        {
            PhotoBrowser.Clear();

            foreach (Photo P in ListPhoto)
            {
                PhotoBrowser.AddPhoto(P);
            }
        }
예제 #4
0
 private void Setup_Logged_User()
 {
     if (Logged_User != null)
     {
         Text        = "Photo Manager Client - " + Logged_User.Name;
         PhotoFilter = new PhotoFilter(Logged_User.Id);
         Init_UsersList();
         Initializing = true;
         LoadPhoto();
         Init_Keywords_List();
         Initializing = false;
     }
     else
     {
         Text = "Photo Manager Client - Not connected";
         CBX_UsersList.Items.Clear();
         CBX_Keywords.Items.Clear();
         PhotoBrowser.Clear();
         PhotoFilter = null;
     }
     Update_UI();
 }