コード例 #1
0
        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";
        }
コード例 #2
0
 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"
       };
 }