Exemplo n.º 1
0
        //--A more stable storage for the ID of the user album instead
        //-- of relying on a form's selected items collection
        //private int albumChosenbyUser;
        public MainWindow()
        {
            InitializeComponent();

            //for now the gui will determine filepaths(set to same folder as exe) in case it is ever made a user choice
            String libraryPath = System.IO.Path.Combine(Environment.CurrentDirectory, "photo library");
            bombaDeFotos = new PhotoBomb();
            bombaDeFotos.init(guiConstructorCallback, "albumRC1.xml", "photoRC1.xml", libraryPath);

            hideAddAlbumBox();

            populateAlbumView(true);
        }
Exemplo n.º 2
0
        /*********************************************************************************************
        * Author: Alejandro Sosa
        * parameters: none
        * return type: none
        * purpose: creates a new instance of mainGUI
        *********************************************************************************************/
        public mainGUI()
        {
            InitializeComponent();

            //for now the gui will determine filepaths(set to same folder as exe) in case it is ever made a user choice
            String libraryPath = System.IO.Path.Combine(Environment.CurrentDirectory, "photo library");
            bombaDeFotos = new PhotoBomb();
            bombaDeFotos.init(guiConstructorCallback, "albumRC1.xml", "photoRC1.xml", libraryPath);

            //ensures that the album list is visible
            albumListView.BringToFront();

            //true tells the function to refresh list
            populateAlbumView(true);

            createNewAlbumToolStripMenuItem.Enabled = true;
            aboutToolStripMenuItem.Enabled = true;

            albumChosenbyUser = addAlbumID;
        }