コード例 #1
0
 private void encodeAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         ImageFileIO EncodeToDisk = new ImageFileIO();
         EncodeToDisk.Encode(imageOperations.ImageFilesContainer, Properties.Settings.Default.EncodedFolder);
         MessageBox.Show("Encoding all Images Complete");
     }
     catch
     {
         MessageBox.Show("An error ocurred writting to disk");
     }
 }
コード例 #2
0
 private void encodeSelectedToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         GridViewImages.EndEdit();
         var         indexes      = imageOperations.BindableFileContainer.Where(Q => Q.saveFile == true).Select(R => R.Index).ToList();
         var         container    = imageOperations.ImageFilesContainer.Where(Q => indexes.Contains(Q.Index)).ToList();
         ImageFileIO EncodeToDisk = new ImageFileIO();
         EncodeToDisk.Encode(container, Properties.Settings.Default.EncodedFolder);
         MessageBox.Show("Encoding all Images Complete");
     }
     catch
     {
         MessageBox.Show("An error ocurred writting to disk");
     }
 }