Exemplo n.º 1
0
 private void addObjectButton_Click(object sender, EventArgs e)
 {
     using(SpriteDialog sd = new SpriteDialog(currentProject, null)) {
         sd.ShowDialog(this);
     }
     LoadObjects();
 }
Exemplo n.º 2
0
 private void objectsListBox_DoubleClick(object sender, EventArgs e)
 {
     if (objectsListBox.SelectedIndex == -1 || objectsListBox.SelectedIndex == 0) return;
     using(SpriteDialog sd = new SpriteDialog(currentProject, (Sprite)objectsListBox.SelectedItem)) {
         sd.ShowDialog(this);
     }
     LoadObjects();
 }