public MainSystem() { createStartingXML(); mySQLConnect = new SQLConnect(systemDirectory); mySQLStatus = mySQLConnect.message; if (!initDropBox()) { dbAccess = new DropBoxAccess(""); } }
//initializing dropbox private bool initDropBox() { try { string tokenValue = mySQLConnect.getToken(); dbAccess = new DropBoxAccess(tokenValue); return(true); } catch (Exception ex) { return(false); } }