예제 #1
0
 private async void CheckLicense()
 {
     IsBusy = true;
     BusyConyent = "Checking License";
     await Task.Factory.StartNew(() =>
                                 {
                                     using (var db = new Dbesm())
                                     {
                                         var company = db.CompanyInformations.Find(1);
                                     }
                                     MenuCommandExecute(new InitialLicense().Check() ? "User Login" : "Activation");
                                     // MenuCommandExecute(true ? "User Login" : "Activation");
                                     IsBusy = false;
                                     BusyConyent = "Loading...";
                                 });
 }
예제 #2
0
 public CompanyInfoRepository(Dbesm dbesm)
 {
     _dbesm = dbesm;
     _dbSet = _dbesm.Set<CompanyInformation>();
 }