예제 #1
0
        /// <summary>
        /// Shows the form as a modal dialog box.
        /// </summary>
        /// <param name="owner">Any object that implements <see cref="T:System.Windows.Forms.IWin32Window" /> that represents the top-level window that will own the modal dialog box.</param>
        /// <param name="programName">Name of the program which version history to show.</param>
        /// <param name="icon">A <see cref="Icon"/> to use with the form.</param>
        /// <returns>One of the <see cref="T:System.Windows.Forms.DialogResult"/> values.</returns>
        public static DialogResult ShowDialog(IWin32Window owner, string programName, Icon icon)
        {
            var form = new FormDialogVersionHistory(icon, programName);

            return(form.ShowDialog(owner));
        }
예제 #2
0
        private void btViewVersionHistory_Click(object sender, EventArgs e)
        {
            var programName = aboutAssembly.GetName().Name;

            FormDialogVersionHistory.ShowDialog(this, programName, Icon);
        }