|
|
(2 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| [[Category:Language]]{{NoTitle}} | | #REDIRECT [[Language - C Sharp]] |
| {|
| |
| |style="vertical-align:middle; width: 60%;"|
| |
| <font size=6>'''Language - C#'''
| |
| | |
| '''Windows with MonoDevelop / Xamarin Studio'''</font>
| |
| | |
| Welcome to using Phidgets with C#! By using C#, you will have access to the complete Phidget22 API, including events.
| |
| | |
| MonoDevelop is an open-source programming environment that mimics the capabilities of Microsoft Visual Studio and is available across all operating systems.
| |
| |{{TOC limit|2}}
| |
| |}
| |
| | |
| {{Language_-_C_Sharp_Intro|Windows|Visual Studio}}
| |
| {{Finding Code Samples|C#|CSharp}}
| |
| ==Setting up a New Project==
| |
| | |
| When you are building a project from scratch, or adding Phidget function calls to an existing project, you'll need to configure your development environment to properly link the Phidget .NET library. To begin:
| |
| | |
| | |
| Create a new .NET project:
| |
| | |
| | |
| [[Image:Csharp_xamarin_newproject.PNG|link=|center|850px]]
| |
| | |
| | |
| [[Image:Csharp_xamarin_nameproject.PNG|link=|center|850px]]
| |
| | |
| | |
| Next, add a reference to the Phidget .NET library:
| |
| | |
| | |
| [[Image:Csharp_xamarin_editreference.png|link=|center|850px]]
| |
| | |
| | |
| On the following screen, select Phidget22.NET.dll:
| |
| | |
| | |
| [[Image:Csharp_xamarin_addreference.PNG|link=|center|850px]]
| |
| | |
| | |
| Success! The project now has access to Phidgets.
| |
| | |
| ==Using the Code Samples==
| |
| Now that you have configured a project to use Phidgets, you can copy the code sample from the [{{server}}/?view=code_samples&lang=CSharp Code Samples] page into your project, and run it.
| |
| | |
| {{Language Page What's Next}}
| |