Ejemplo n.º 1
0
 private void 详细信息ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var box = new ImageInfo(filename, exifinfo);
         box.ShowDialog();
         DragPicture.Focus();
     }
     catch (Exception) {
         DragPicture.Focus();
     }
 }
Ejemplo n.º 2
0
        private void 详细信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                var fi = new FileInfo(filename);
                fi.OpenRead();

                MessageBox.Show("filename: " + fi.Name + "\r\ndate: " + fi.CreationTime.ToLongDateString() + " " + fi.CreationTime.ToLongTimeString() +
                                "\r\nsize: " + fi.Length.ToString() + " byte\r\nresolution: " + MainPictureBox.Image.Width + "x" + MainPictureBox.Image.Height);


                DragPicture.Focus();
            }
            catch (Exception) {
                DragPicture.Focus();
            }
        }