Пример #1
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            using (Editor.Controls.OnionChooser chooser = new Controls.OnionChooser())
            {
                chooser.StartPosition = FormStartPosition.CenterParent;
                if (chooser.ShowDialog() == DialogResult.OK)
                {
                    var index = chooser.SelectedFixtureIndex;

                    pictureBox1.OnionList = null;
                    pictureBox1.Invalidate();

                    if (index != -1)
                    {
                        pictureBox1.OnionList = (Main.WorldObject.Fixtures[index].ShapeNode.Data as PolygonPanelData).Vertices;
                    }
                }
            }
        }
Пример #2
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            using (Editor.Controls.OnionChooser chooser = new Controls.OnionChooser())
            {
                chooser.StartPosition = FormStartPosition.CenterParent;
                if (chooser.ShowDialog() == DialogResult.OK)
                {
                    var index = chooser.SelectedFixtureIndex;

                    pictureBox1.OnionList = null;
                    pictureBox1.Invalidate();

                    if (index != -1)
                        pictureBox1.OnionList = (Main.WorldObject.Fixtures[index].ShapeNode.Data as PolygonPanelData).Vertices;
                }
            }
        }