示例#1
0
        /// <summary>
        /// Launches a new form to display the png. No extension in parameter.
        /// </summary>
        /// <param name="filename"></param>
        public static void DisplayPNGInChildWindow(string filename)
        {
            string pngFilename = filename + ".png";

            ImageDisplay displayForm = new ImageDisplay();
            displayForm.AssignImage(pngFilename);
            displayForm.Text = pngFilename;

            displayForm.Show();
        }
示例#2
0
        /// <summary>
        /// Launches a new form to display the png. No extension in parameter.
        /// </summary>
        /// <param name="filename"></param>
        public static void DisplayPNGInChildWindow(string filename)
        {
            string pngFilename = filename + ".png";

            ImageDisplay displayForm = new ImageDisplay();

            displayForm.AssignImage(pngFilename);
            displayForm.Text = pngFilename;

            displayForm.Show();
        }