Interaction logic for TeamSettingsControl.xaml
Inheritance: Gwupe.Agent.UI.WPF.API.GwupeDataCaptureForm
Exemple #1
0
 public void SelectTeam(Components.Person.Team team)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.Invoke(new Action(() => SelectTeam(team)));
         return;
     }
     if (_teamSettings == null)
     {
         _teamSettings = new TeamSettingsControl(Disabler, this);
     }
     _teamSettings.Team    = team;
     _dataContext.Content  = _teamSettings;
     TeamList.SelectedItem = team;
 }
Exemple #2
0
 public void SelectTeam(Components.Person.Team team)
 {
     if (!Dispatcher.CheckAccess())
     {
         Dispatcher.Invoke(new Action(() => SelectTeam(team)));
         return;
     }
     if (_teamSettings == null)
     {
         _teamSettings = new TeamSettingsControl(Disabler, this);
     }
     _teamSettings.Team = team;
     _dataContext.Content = _teamSettings;
     TeamList.SelectedItem = team;
 }