public CollectionManagement(MainWindow mw)
        {
            mainWindow = mw; 
            InitializeComponent();
            loadCollectionList();

        }
 public SelectPhotos(MainWindow mw)
 {
     mainWindow = mw;
     InitializeComponent();
     loadCollectionMenu();
     loadImagesToSelectPhotos();
 }
        //private String email;
        //private String password;

        public FacebookLogin(MainWindow mw)
        {
            InitializeComponent();
            mainWindow = mw; 
            OleDbConnection connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\\StarPix.accdb");
            connection.Open();
            DataTable dt = new DataTable();
            DataSet ds = new DataSet();
            ds.Tables.Add(dt);
            OleDbDataAdapter da = new OleDbDataAdapter("SELECT * from Credentials", connection);
            da.Fill(dt);
            foreach (DataRow myRow in dt.Rows)
            {
                if ((bool)myRow[3] == true)
                {
                    EmailTextbox.Text = myRow[1].ToString();
                    PasswordTextbox.Password = myRow[2].ToString();
                    saveCredentials.IsChecked = true; 

                }

            }
        }
 public FacebookUploadProgress(MainWindow mw)
 {
     InitializeComponent();
     mainWindow = mw; 
 }
 public ImportPhotos(SelectPhotos sp, MainWindow mw)
 {
     InitializeComponent();
     selectPhotos = sp;
     mainWindow = mw;
 }