示例#1
0
文件: Controller.cs 项目: jfefes/ORK3
 public Controller()
 {
     AuthSvc = new AuthorizationService.AuthorizationService();
     AuthSvc.Url = Model.Configuration.Config["ServiceURL"];
     _Errors = new Dictionary<DateTime, AuthorizationService.StatusType>();
     try
     {
         Login(Model.Configuration.Config["UserName"], Model.Configuration.Config["Password"]);
     }
     catch (Exception LoginExc)
     {
         System.Windows.Forms.MessageBox.Show("Your User Name or Password are incorrect.");
     }
 }
示例#2
0
 public Controller()
 {
     AuthSvc     = new AuthorizationService.AuthorizationService();
     AuthSvc.Url = Model.Configuration.Config["ServiceURL"];
     _Errors     = new Dictionary <DateTime, AuthorizationService.StatusType>();
     try
     {
         Login(Model.Configuration.Config["UserName"], Model.Configuration.Config["Password"]);
     }
     catch (Exception LoginExc)
     {
         System.Windows.Forms.MessageBox.Show("Your User Name or Password are incorrect.");
     }
 }