#simplsharp

SIP outgoing video call from TSW-770
Greetings, I am trying to write a simple driver for Crestron Home, that would enable calls from the apartment to the reception desk that uses 2N phone (https://www.2n.com/en_US/products/2n-ip-phone-d7
Від @adamglodek · #253000 ·
Help with static events
Awesome, you’re welcome!
Від @DizzyEgg · #249881 ·
Help with static events
Wow, that works! Thank you, I sincerely appreciate it!!!
Від noamx4me · #249880 ·
Help with static events
Oh yes, sorry, in your event args you need the default constructor as well as the overloaded one that takes arguments, should have been: public class MyEventArgs : EventArgs { int mValue; public MyEve
Від @DizzyEgg · #249879 ·
Help with static events
@DizzyEgg, Thank you, this must be close, but I am getting this error and am unsure why... [C:\Projects\_tests\Test Static Class.usp] Error 1009 (Line 26) - Class or Structure does not contain member:
Від noamx4me · #249878 ·
Help with static events
You can use custom event args with static events, as shown in my example.
Від @DizzyEgg · #249877 ·
Help with static events
Im pretty sure only static EventHandler will work in s#/s+ and not custom event args. So for example this should work but uses the standard EventArgs: public static class Class1 { public static event
Від matklucznyk · #249876 ·
Help with static events
Here is some untested code. The main thing is to register in Simpl+ with the static class name, NOT an instance of the class... //C# namespace MyLibrary { public delegate void MyEvent(MyEventArgs e);
Від @DizzyEgg · #249874 ·
Help with static events
From my experience Static events are not possible with S+. I get an error message saying "Class EventHandler expected". Static events don't even show up when you open the API within S+. You can always
Від Shawn Fennell · #249873 ·
Help with static events
After playing with Delegates and Events, I still cannot seem to get the syntax correct to pass C# variables back to S+ by means of a static event. I have the TBD course and it doesn't quite show this.
Від noamx4me · #249869 ·
#simplsharp #simpl+
Hi Troy, I have been going through your course and I am stuck right at the point of the static events. You don't show how to use the static event as you do with the non-static event. I have been tryin
Від noamx4me · #249864 ·
Visual Studio 2008
Yes, my understanding is 2022 will work just fine, now that the debugger has been updated. Still a giant PITA but 2022 seems ok.
Від Devin Cook · #248886 ·
Visual Studio 2008
I though I would chime in here rather than add a new VS topic. Can you use Visual Studio 2022 rather than 2019 for 4 Series S#?
Від Adam · #248885 ·
Visual Studio 2008
Thanks all, it's a lot clearer now.
Від Olivier Royer · #248330 ·
Visual Studio 2008
I have heard rumors that some people have gotten old 3.5 stuff to compile with new versions of VS, but I believe they needed the VS2008 installed as well. Unfortunately debugging with the latest VS is
Від Devin Cook · #248313 ·
Visual Studio 2008
Due to the .NET framework version that the Windows CE install for 3-series processors uses you must use VS2008 with the Crestron Plugin. You can’t use the plugin on newer (or older) VS versions or com
Від Lincoln King-Cliby · #248311 ·
Visual Studio 2008
You have to have VS 2008 to do SIMPL # for 3 series processors. You can use new versions of Visual Studio to do # for 4 series. The requirement of 2008 for 3 series is unfortunate, but it is what it i
Від Robert Ray · #248307 ·
Visual Studio 2008
Sorry for ressurecting an old thread, but I don't seem to find an answer. I want to dive into Simpl#, and on the Crestron Website, they say the libraries work with Visual Studio 2008 SP1. It seems to
Від Olivier Royer · #248306 · Змінено
XML in vs2008
Thanks guys! I have it working now. I really appreciate the help.
Від Alex Teague · #248103 ·
XML in vs2008
Here is part of the code I wrote for reading xml data from a file for a module I have that tracks the angle and elevation of the sun, compares that with data for each window, and automates the operati
Від jbasen · #248102 ·