예제 #1
0
        private void btnViewMap_Click(object sender, EventArgs e)
        {
            Image iDefaultBackground = GameResourceManager.LoadResource_FullName("EK_SW.KWRendered.png");

            frmImagePreview test = new frmImagePreview();

            test.BackgroundImageLayout = ImageLayout.Stretch;
            test.BackgroundImage       = iDefaultBackground;
            test.ClientSize            = new System.Drawing.Size(iDefaultBackground.Width, iDefaultBackground.Height);
            test.FormBorderStyle       = System.Windows.Forms.FormBorderStyle.None;
            test.Padding     = new Padding(0);
            test.PreviewType = frmImagePreview.PreviewTypes.Other;
            test.Text        = "EK Unleashed :: Kingdom War Reference Map";
            test.Icon        = (Icon)this.Icon.Clone();
            test.Show();
        }