Beispiel #1
0
 private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
 {
     MousDownCheck = false;
     if (e.Location == MousDownPoint && !space.Play && currentBody != null)
     {
         FormChangeBody form = new FormChangeBody(this, currentBody);
         form.ShowDialog();
     }
     currentBody = null;
 }
        public FormOrbitBody(FormChangeBody form)
        {
            InitializeComponent();
            form2     = form;
            this.form = form.form;
            var bodies = form2.form.space.AllBodies();

            for (int i = 0; i < bodies.Length; i++)
            {
                checkedListBox1.Items.Add(bodies[i].Name);
            }
        }
Beispiel #3
0
        private void ChangeButton_Click(object sender, EventArgs e)
        {
            FormChangeBody form = new FormChangeBody(this.form, Body);

            form.ShowDialog();
        }