Skip to content

Commit

Permalink
More fixes to event popup.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 17, 2024
1 parent c927705 commit 4ce2892
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FRBDK/Glue/Glue/Controls/AddEventWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ private void AvailableTypesComboBox_SelectedIndexChanged(object sender, Selectio
private void TunnelingVariableComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
AlternativeTextBox.Text =
TunnelingObjectComboBox.Text +
TunnelingEventComboBox.Text;
TunnelingObjectComboBox.SelectedItem?.ToString() +
TunnelingEventComboBox.SelectedItem?.ToString();
}

/// <summary>
Expand All @@ -164,6 +164,11 @@ private void TunnelingObjectComboBox_SelectedIndexChanged(object sender, EventAr
{
this.TunnelingEventComboBox.Items.Add(availableVariable);
}

if(this.TunnelingEventComboBox.Items.Count > 0)
{
this.TunnelingEventComboBox.SelectedItem = this.TunnelingEventComboBox.Items[0];
}
}

/// <summary>
Expand Down

0 comments on commit 4ce2892

Please sign in to comment.