Beispiel #1
0
 private void bttnOK_Click(object sender, EventArgs e)
 {
     if (lstFiles.Items.Count > 1)
     {
         this.Cursor = Cursors.WaitCursor;
         MatchBands bandMatching = new MatchBands(cropMargin, currentFolder, lstFiles.Items.Cast <String>().ToList());
         this.Cursor     = Cursors.Default;
         pbPicView.Image = null;
     }
     else
     {
         MessageBox.Show("There is only one file on the list. You need two files at least. Add another one or more", "Too few files", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Beispiel #2
0
 private void lstFiles_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (lstFiles.SelectedItem != null)
     {
         tslblSelectedGroup.Text = getFileGroup(lstFiles.SelectedItem.ToString());
         string     fn = currentFolder + @"\" + lstFiles.SelectedItem;
         MatchBands mb = new MatchBands();
         Image      im = Image.FromFile(fn);
         pbPicView.Image = im; //mb.ClipImage((Bitmap)im, new Point(cropMargin, cropMargin));
     }
     else
     {
         tslblSelectedGroup.Text = "";
     }
 }