コード例 #1
0
        private void zoom(object sender, EventArgs e)
        {
            PictureBox p = (PictureBox)sender;

            if (z.IsDisposed)
            {
                z = new ZoomForm(this);
            }
            z.Show();
            var l = extractLabel(p.Name);

            switch (l)
            {
            case "psychopunchBox":
                currentlyZoomedLabel = "psychopunch";
                break;

            case "psychoprepBox":
                currentlyZoomedLabel = "psychoprep";
                break;

            case "crushertopBox":
                currentlyZoomedLabel = "crushertop";
                break;

            case "crusherbottomBox":
                currentlyZoomedLabel = "crusherbottom";
                break;

            case "crusherbackBox":
                currentlyZoomedLabel = "crusherback";
                break;

            case "neutralStandBox":
                currentlyZoomedLabel = "neutral";
                break;

            case "portraitVictoryBox":
                currentlyZoomedLabel = "victory";
                break;

            case "portraitLossBox":
                currentlyZoomedLabel = "loss";
                break;

            case "teleportBox1":
                currentlyZoomedLabel = "teleport1";
                break;

            case "teleportBox2":
                currentlyZoomedLabel = "teleport2";
                break;

            case "teleportBox3":
                currentlyZoomedLabel = "teleport3";
                break;
            }
            z.displayZoomImage();
        }
コード例 #2
0
 public void CreateZoomAndColorForms()
 {
     z = new ZoomForm(this);
     c = new ColorSetForm(this);
     s = new SingleColorForm(this);
 }