private void nfiQDriveMenu_Reconnect_Click(object sender, EventArgs e) { if (localConnection) { QDLib.ConnectQDDrives("", "", dbData, logUserActions, true); } else { QDLib.ConnectQDDrives(UserID, Password, dbData, logUserActions, true); } }
private void tmrDriveCheck_Tick(object sender, EventArgs e) { if (localConnection) { QDLib.ConnectQDDrives("", "", dbData, logUserActions, false, null, true); } else { if (string.IsNullOrEmpty(UserID)) { LoadQDData(); } QDLib.ConnectQDDrives(UserID, Password, dbData, logUserActions, false, null, true); } }
private void QDrive_Load(object sender, EventArgs e) { // Check if the setup has been completed yet if (!QDLib.IsQDConfigured()) { QDLib.RunQDriveSetup(); this.Close(); } // Load QD-Data LoadQDData(); // If always-prompt-password is set if (promptPassword) { QDriveManager.QDriveManager managerLogin = new QDriveManager.QDriveManager() { AutostartLogin = true }; if (managerLogin.ShowDialog() != DialogResult.OK) { this.Close(); } Username = managerLogin.uUsername; Password = managerLogin.uPassword; UserID = managerLogin.userID; } driveList = QDLib.CreateDriveList(localConnection, UserID, Password, dbData); if (localConnection) { pbxQDriveSplash.Image = Properties.Resources.QDSplashLocal; QDLib.ConnectQDDrives("", "", dbData, logUserActions, true, driveList); } else { pbxQDriveSplash.Image = Properties.Resources.QDSplashOnline; QDLib.ConnectQDDrives(UserID, Password, dbData, logUserActions, true, driveList); if (!localConnection) { QDLib.LogUserConnection(UserID, QDLogAction.QDSystemAutostartFinished, dbData, logUserActions); } } }