You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lasalesi edited this page Jun 13, 2017
·
1 revision
Initialisation of a client
Include the following using statements (as well as required further DocTypes by group)
using ERPNextSharp;
using ERPNextSharp.Data;
using ERPNext.DocTypes.Customer;
Make sure you define globally
private ERPNextClient client;
Then, initialise like this
client = new ERPNextClient(txtServer.Text, txtUsername.Text, txtPassword.Text);
client.HasError += Client_HasError;
if (client.IsLoggedIn)
{
postLoginHooks();
}
else
{
MessageBox.Show("Unable to connect.");
}