private void AddUserToSimulationEvent(object sender, System.Windows.RoutedEventArgs e) { int simulationFactoryId = GetSelectedSimulationId(); string username = SimulationUserTextBox.Text; csu.AddMemberToSimulation(simulationFactoryId, username); }