Beispiel #1
0
 public MainViewModel()
 {
     vkParser                        = new VkParser();
     excelExporter                   = new ExcelExporterXML();
     vkParser.OnNewData             += VkParser_OnNewData;
     vkParser.NewMessage            += VkParser_NewMessage;
     excelExporter.OneNewMessage    += VkParser_NewMessage;
     vkParser.OnCompleted           += VkParser_OnCompleted;
     vkParser.ProgressChange        += VkParser_ProgressChange;
     excelExporter.ProgressChaneged += VkParser_ProgressChange;
     AuthorizeCommand                = new Command(Authorize);
     StartParseCommand               = new Command(StartParse);
     ExportToExelCommand             = new Command(ExportToExel);
     ClearTableCommand               = new Command(CleareTable);
     SelectCountryCommand            = new Command(SelectCoutry);
     SelectUniversityCommand         = new Command(SelectUniversity);
     StopParseCommand                = new Command(StopParse);
     ListRelation                    = ParametrLists.GetRelationList();
     BindingOperations.EnableCollectionSynchronization(list, new object());
 }
Beispiel #2
0
 async void SelectUniversity(object parametr) //loading university list
 {
     ListUniversity = await ParametrLists.GetUniversityListAsync((int)selectedCountryId, (int)selectedCityId);
 }
Beispiel #3
0
 async void SelectCity(object parametr) // loading city list
 {
     ListCity = await ParametrLists.GetListCityAsync((int)selectedCountryId);
 }
Beispiel #4
0
 async void SelectCoutry(object parametr) // loading country list
 {
     ListCountry = await ParametrLists.GetListCountriesAsync();
 }