Ejemplo n.º 1
0
 public Server(Auth auth)
 {
     _auth           = auth;
     _address        = auth.Link;
     _manager        = new DataManager(RedmineApi.RedmineXmlGetter.getSelfUserdata(_auth.Link, _auth.Token, "abcde"));
     _getter         = new RedmineXmlGetter(_manager);
     _projects       = FProject.getAll(_getter);
     _currentProjetI = 0;
     _history        = new List <History>();
     _ds             = Front.DayStatistics.getPastWeek(_getter);
 }
Ejemplo n.º 2
0
 public Server(string address, string login, string password, bool persist)
 {
     _manager = new DataManager(RedmineXmlGetter.getSelfUserdata(address, login, password));
     if (_manager != null && persist)
     {
         _auth = Auth.addServer(address, _manager.UserData.RedmineLogin);
     }
     _address        = address;
     _getter         = new RedmineXmlGetter(_manager);
     _projects       = FProject.getAll(_getter);
     _currentProjetI = 0;
     _history        = new List <History>();
     _ds             = Front.DayStatistics.getPastWeek(_getter);
 }