public ViewerRideWithGps(string username, string password) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // _username = username; _password = password; _rwgps = new RideWithGpsAPI(); }
public RideWithGpsConnect(ref RideWithGpsAPI rw) { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); // // TODO: Add constructor code after the InitializeComponent() call. // _email = ""; _password = ""; _token = ""; rwgps = rw; }
void checkForRideWithGpsDetails() { SetControlPropertyThreadSafe(tStatusText, "Text", "Checking RideWithGps authentication details..."); _ridewithgps_email = loadDbSetting("ridewithgps_email", ""); _ridewithgps_password = loadDbSetting("ridewithgps_password", ""); _ridewithgps_token = loadDbSetting("ridewithgps_token", ""); try{ if (_ridewithgps_email != "" && _ridewithgps_password != "") { _rwgps = new RideWithGpsAPI(); if (_rwgps.login(_ridewithgps_email, _ridewithgps_password)) { //EnableMenuItem(menuConnectToRideWithGps, false); //EnableMenuItem(menuViewAccountRideWithGps, true); _ridewithgps_token = _rwgps.getAuthToken(); } } } catch {} }