private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (bEditView)
            {
                comboEvent.IsEnabled  = false;
                comboRoom.IsEnabled   = false;
                comboWorld.IsEnabled  = false;
                gridCodes.ItemsSource = _trigger.CodeEntries.Entries;

                int w  = WorldInfo.GetWorldIndex(_trigger.RoomInfo.WorldNumber);
                int r  = WorldInfo.GetRoomIndex(w, _trigger.RoomInfo.RoomNumber);
                int ev = 0;
                if (_trigger.HasEvent)
                {
                    ev = WorldInfo.GetEventIndex(w, r, _trigger.RoomInfo.EventNumberMain);
                }

                comboWorld.SelectedIndex = w;
                comboRoom.SelectedIndex  = r;

                chkEnableEvent.IsEnabled = false;
                if (_trigger.HasEvent)
                {
                    chkEnableEvent.IsChecked = true;
                    comboEvent.SelectedIndex = ev;
                }
                else
                {
                    chkEnableEvent.IsChecked = false;
                }
            }
        }