private void LevelPanel_LevelEditorExitSelected(int x, int y) { _levelPanel.LevelEditorExitSelected -= LevelPanel_LevelEditorExitSelected; _levelPanel = null; ExitX.Text = x.ToString("X"); ExitY.Text = y.ToString("X"); GlobalPanels.EditLevel(_levelInfo); }
private void Button_Click(object sender, RoutedEventArgs e) { if (LevelList.SelectedItem != null) { if (LevelList.SelectedItem is LevelInfo) { GlobalPanels.EditLevel((LevelInfo)LevelList.SelectedItem); } } }
private void Button_Click_1(object sender, RoutedEventArgs e) { if (LevelList.SelectedItem != null) { if (LevelList.SelectedItem is LevelInfo) { _levelPanel = GlobalPanels.EditLevel((LevelInfo)LevelList.SelectedItem); _levelPanel.LevelEditorExitSelected += LevelPanel_LevelEditorExitSelected; } } }