Esempio n. 1
0
        /*********************************************************************************************
        * Author: Alejandro Sosa
        * parameters: reference to main window, and a complexphotodata containing info of the photo
        *   to be displayed
        * return type: none
        * purpose: creates a new instance of PhotoViewWindow object
        *********************************************************************************************/
        public PhotoViewWindow(mainGUI localMainWindowRef, ComplexPhotoData wantedPhoto, string myName)
        {
            mainWindowRef = localMainWindowRef;

            photoToDisplay = wantedPhoto;

            InitializeComponent();

            this.Text = myName;

            int appropriateHeight = (int)((SystemParameters.PrimaryScreenHeight)/3)*2;

            int appropriateWidth= (int)((SystemParameters.PrimaryScreenWidth)/3)*2;

            photoboxPanel1.MaximumSize = new System.Drawing.Size(appropriateWidth, appropriateHeight);

            //displayPhoto();

            photoBox.LoadAsync(wantedPhoto.path);
        }
Esempio n. 2
0
        /*********************************************************************************************
        * Author: Alejandro Sosa
        * parameters: the Main Window of the program
        * return type: none
        * purpose: creates a new instance of addNewAlbum
        *********************************************************************************************/
        public addNewAlbum(mainGUI localMainWindowRef)
        {
            mainWindowRef = localMainWindowRef;

            InitializeComponent();
        }