Interaction logic for TeamSettingsControl.xaml
Inheritance: Gwupe.Agent.UI.WPF.API.GwupeDataCaptureForm
コード例 #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;
 }
コード例 #2
0
ファイル: TeamManagement.xaml.cs プロジェクト: gwupe/Gwupe
 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;
 }