コード例 #1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var lp = EditGraph.GetPoint(MX, MY);
            var nl = new GraphLight();

            nl.X = lp.X;
            nl.Y = lp.Y;
            nl.Z = 1.0f;
            if (LightIcon == null)
            {
                Environment.Exit(1);
            }
            nl.ImgFrame = LightIcon;
            nl.W        = 32;
            nl.H        = 32;
            EditGraph.Add(nl, true);
            SyncUI();
        }