Beispiel #1
0
        private void button_new_so_Click(object sender, EventArgs e)
        {
            var frm = new soFRM();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                //UpdateLSTBXs();
            }
        }
Beispiel #2
0
 private void button_edit_so_Click(object sender, EventArgs e)
 {
     if (listBox_space_objects.SelectedIndex != -1 && listBox_space_objects.SelectedItem is SpaceObject selected)
     {
         var frm = new soFRM(selected);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             DataStore.SpaceObjects.Remove(selected);
             DataStore.AddToSpaceObjects(frm.So);
         }
     }
 }