Пример #1
0
        public MainSystem()
        {
            createStartingXML();
            mySQLConnect = new SQLConnect(systemDirectory);
            mySQLStatus  = mySQLConnect.message;

            if (!initDropBox())
            {
                dbAccess = new DropBoxAccess("");
            }
        }
Пример #2
0
 //initializing dropbox
 private bool initDropBox()
 {
     try
     {
         string tokenValue = mySQLConnect.getToken();
         dbAccess = new DropBoxAccess(tokenValue);
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }