Example #1
0
 public MyPictures()
 {
     InitializeComponent();
     move = 0;
     maxValX = 0;
     maxValY = 0;
     this.TopLevel = true;
     trackBar.Maximum = 255;
     trackBar.Minimum = 40;
     oldList = new ListView();
     currentAlbum = new Album();
     currentAlbum.pict_tab.ImageSize = new Size(40, 40);
     currentAlbum.pict_tab.ColorDepth = ColorDepth.Depth32Bit;
     // Initialize Albums stored on computer
     try
     {
         this.load_Albums();
         this.checkForDefaultAlbum();
         this.miniatureView.CheckBoxes = true;
         // Display grid lines.
         this.miniatureView.GridLines = true;
         this.newFolder = new AddFolder();
     }
     catch (Exception e){ Console.WriteLine(e); }
 }
Example #2
0
        private void addFolder_Click(object sender, EventArgs e)
        {
            this.newFolder = new AddFolder();
             foreach (Control i in this.newFolder.Controls)
             {
                 if (i.Name == this.newFolder.button1.Name)
                 {
                     i.Click += addFolder_button1_Click;
                 }
             }

             this.newFolder.FormClosing += new FormClosingEventHandler(addFolder_onClosing_Event);

             this.newFolder.Show();
        }