public MainViewModel() { timer = new Timer(); service = new LMService.LMServiceClient(); timer.Interval = 2000; timer.Elapsed += timer_Elapsed; MyTeam = new TeamViewModel(); EnemyTeam = new TeamViewModel(); SendSetupCommand = new RelayCommand(SendSetup); NewGameCommannd = new RelayCommand(NewGame); CanSendSetup = true; //Deze halen we later op vanuit de server Champions = new List<string>(){ "Shaco", "Sona", "Vayne", "Leblanc", "Aatrox" }; //Default setup MyTeam.Top = "Aatrox"; MyTeam.Jungle = "Shaco"; MyTeam.Mid = "Leblanc"; MyTeam.Adc = "Vayne"; MyTeam.Supp = "Sona"; }
public MainViewModel() { MyTeam = new TeamViewModel(); EnemyTeam = new TeamViewModel(); SendSetupCommand = new RelayCommand(SendSetup); NewGameCommannd = new RelayCommand(NewGame); //Deze halen we later op vanuit de server Champions = new List<string>(){ "Shaco", "Sona", "Vayne", "Leblanc", "Aatrox" }; }