How to create your own custom UI via the seliware API
Prerequisite You should have downloaded Visual Studio with the .NET desktop developement extension, and have a basic understanding of C#.
First create a new project in Visual Studio, and select Windows Forms App (.NET Framework). Name your project, and click Create.
In the Solution Explorer, right click on your project and click on Properties at the bottom. In the Build tab, change the Platform target to x64.
In the Solution Explorer, right click on your project and hover over “Add” then click on “New Item”. Select “Application Manifest File (Windows Only)” and click “Add”. In the manifest file, change the requestedExecutionLevel
to requireAdministrator
.
The seliware API depends on Newtonsoft.Json.dll
and websocket-sharp.dll
.
You may download the dependences using these links (or by searching for them on the internet): Newtonsoft.Json.dll and websocket-sharp.dll.
The seliware API dll is found in https://bitdancer.pro/
To add these dependencies to your project, right click on your project in the Solution Explorer and hover over “Add” then click on “Reference” or “Project Reference”. From there, click on “Browse” and select the downloaded dependencies. Then finally click on “OK” to add the dependencies to your project.
Congratulations on setting up your project! Now you can start using the seliware API to create your own custom UI. Find the Methods and Properties of the API in the usage section of the documentation.
This Occurs when the dependencies are not added to the project correctly. Make sure you have added the dependencies to the project correctly. If it is added correctly, go to the output folder of your project and add the dependencies in the root folder of the project (where the main .exe
file is in).
There are several reasons why the API may not work, but make sure that you initialized Seliware via Seliware.Initialize();
(for more info check usage).
The Seliware API is not able to run in the Visual Studio debugger. To test your UI, you must run the .exe
file in the output folder of your project. If you are unable to run the .exe
file, make sure that the dependencies are in the root folder of the project.