// Initialize the adapter to call .NET assemblies.
builder.Initialize();
// Use the builder to add the username and password as constructor argument values.
builder.AddConstructorParam(username);
builder.AddConstructorParam(password);
// Load the Ung1881.dll assembly and create an instance of the Ung1881.Ung1881Client type.
ung1881Client = builder.LoadType(System.Gadget.path + "\\bin\\Ung1881.dll", "Ung1881.Ung1881Client");
//Get values from the UI.
var number = txtPhoneNumber.value;
var message = txtMessage.innerText;
//Sending the message
var status = ung1881Client.SendMessage(number, message);

No comments:
Post a Comment