Skip to content

Instantly share code, notes, and snippets.

@hasokeric
Created February 18, 2020 15:19
Show Gist options
  • Save hasokeric/39b01bf23639dd2a70c8e9018ef81417 to your computer and use it in GitHub Desktop.
Save hasokeric/39b01bf23639dd2a70c8e9018ef81417 to your computer and use it in GitHub Desktop.
MarkExample
object searchReslts = ProcessCaller.PerformSearch(oTrans.EpiBaseForm, "SysAgentAdapter", "Rows", string.Empty);
if (searchReslts is DataSet) {
DataSet searchDS = (DataSet) searchReslts;
if (searchDS.Tables[0].Rows.Count > 0) {
username = searchDS.Tables["SysAgent"].Rows[0]["SysUserID"].ToString();
password = searchDS.Tables["SysAgent"].Rows[0]["SysPassWord"].ToString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment