Download ImageBoxTiffViewer.zip, last updated 30/07/2016 (3.93 MB)

Download
  • md5: ef452b2d2baa27fcc0fa5c9d031b021c
  • sha1: b1c65a3601495bcabd6847831702ded93dbc5a47
  • sha256: 52680d16d3825c2096f502526f0de41b2db2992679cfe8154ad3c9d7836b664c
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Forms;

// Displaying multi-page tiff files using the ImageBox control and C#
// http://www.cyotek.com/blog/displaying-multi-page-tiff-files-using-the-imagebox-control-and-csharp
// Copyright © 2016 Cyotek Ltd. All Rights Reserved.

namespace Cyotek.Demo.TiffViewer
{
  internal sealed partial class AboutDialog : Form
  {
    #region Constructors

    public AboutDialog()
    {
      this.InitializeComponent();
    }

    #endregion

    #region Methods

    protected override void OnLoad(EventArgs e)
    {
      FileVersionInfo versionInfo;

      versionInfo = FileVersionInfo.GetVersionInfo(typeof(MainForm).Assembly.Location);
      nameLabel.Text = versionInfo.ProductName;
      copyrightLabel.Text = versionInfo.LegalCopyright;

      base.OnLoad(e);
    }

    private void closeButton_Click(object sender, EventArgs e)
    {
      this.Close();
    }

    private void webLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
    {
      try
      {
        Process.Start("http://www.cyotek.com");
      }
      catch (Win32Exception ex)
      {
        MessageBox.Show(ex.GetBaseException().Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
      }
    }

    #endregion
  }
}

Donate

Donate