public void BackgroundWorkerForGetDocsDoWork(object sender, DoWorkEventArgs e) { CouchVo vo = new CouchVo(); /*vo.userName = "******"; * vo.pwd = "pa55w0rd1"; * vo.serverName = Properties.Settings.Default.CouchServerName; * vo.serverport = Properties.Settings.Default.CouchPort; * vo.dbName = "clx_cust_docs_dev"; * vo.adminUserName = "******"; * vo.adminPwd = "adminadmin";*/ vo.userName = "******"; //vo.pwd = "pa55w0rd1"; vo.pwd = "password"; vo.serverName = Properties.Settings.Default.CouchServerName; vo.serverport = Properties.Settings.Default.CouchPort; vo.dbName = Properties.Settings.Default.DBName; vo.adminUserName = "******"; vo.adminPwd = "adminadmin"; TestPopulateData test = new TestPopulateData(); test.populateData(vo, false, this.mainForm.getDocID()); /*TestPopulateData2 test = new TestPopulateData2(); * test.populateData(vo, false, this.mainForm.getDocID());*/ }
private void button6_Click_1(object sender, EventArgs e) { CouchVo vo = new CouchVo(); vo.userName = "******"; vo.pwd = "pa55w0rd1"; vo.serverName = Properties.Settings.Default.CouchServerName; vo.serverport = Properties.Settings.Default.CouchPort; vo.dbName = "clx_cust_docs_dev"; vo.adminUserName = "******"; vo.adminPwd = "adminadmin"; TestPopulateData test = new TestPopulateData(); test.populateData(vo, true, this.docid123.Text); }
private void addDocumentClick(object sender, EventArgs e) { CouchVo vo = new CouchVo(); vo.userName = "******"; vo.pwd = "pa55w0rd1"; vo.serverName = Properties.Settings.Default.CouchServerName; vo.serverport = Properties.Settings.Default.CouchPort; vo.dbName = "clx_cust_docs_dev"; vo.adminUserName = "******"; vo.adminPwd = "adminadmin"; TestPopulateData test = new TestPopulateData(); test.populateData(vo, false, this.docid123.Text); // this.couchVO.fileWithPath = "C:\\dev\\dev_jak2\\devwork_jkingsley\\Phase2App\\CouchConnectorApp\\test\\sample.pdf"; // var couchUtil = new CouchUtil(this.couchVO); //couchUtil.storeDocument(this.couchVO, this.resultText); }