schematic drawing sdk c# - c#

Was wondering if anyone knew and or used a good sdk for drawing schematics for things such as a circuit boards. So something that will connect and draw lines between logical blocks. Main blocks I would need are a switch box an OR box and an AND box. I prefer it to work in C# because its mostly a windows gui based project, however I am willing to do it in C/C++ if there is a good reason too.
Just wondering if anyone has ran across something like this in the past, before I start trying to reinvent the wheel with my own code.
Thanks in advance!!

Related

WPF animation (scaling/translating multiple images at the same time)

I am working on a project in C# using WPF to attempt to make a program much like http://www.scaleofuniverse.com/.
I know it can easily be done in flash but I want to integrate the controls into other platforms (ie the new Leap motion and Kinect). I know I could rig it so that the kinect emulates key presses onto a flash game but i would really like to figure out making this in C#. I completed a few basic tutorials on basic animation and storyboarding but i've found nothing that indicates the project i want to complete can even be done! Am i biting off more than i can chew or am i over-complicating the program somewhere? I am only in the design stage so i do not have any source code for review (still completing tutorials). I really want to know if this project is even plausible before I continue working on it.
It definitely can be done in WPF. Here is an example of a custom zoom control for WPF http://www.ab4d.com/ZoomPanel.aspx.

OpenGL control in WPF - how to?

I need to use OpenGL in my WPF project. I'd prefer it to be as simple in installation as possible, but I'm beginning to lose hope.
I've tried SharpGL: it's pretty good and easy to use, but it has massive memory leaks and the app crashes after few seconds. Not very useful.
So now I am wondering: is there an alternative to this library? Actually I don't have to use OpenGL - I just need to present a 3D scene in any technology .. perhaps D3D or something else will be easier to manage in WPF...
What do you recommend?
Kind regards
Q.
Update: Yes, I'm working under Windows 7. And I'd really prefer smt. OpenGL based because I already know the technology.
Within WPF, I can easily say that using XNA will be the easiest way, which many people have done before. There's even an example project here: http://blogs.msdn.com/b/nicgrave/archive/2011/03/25/wpf-hosting-for-xna-game-studio-4-0.aspx
The Tao framework supports this: taoframework-2.1.0-setup.exe
Once you've installed it, right click on your Toolbar and select "Choose Items.." and add "SimpleOpenGlControl" from the .NET Framework Components list. If you can't find it in the list, hit browse and search for Tao.Platform.Windows.dll in your Tao Framework installation directory.
After that you can just drag the OpenGl control wherever you like, and use its Paint event to do your stuff in. (Not really sure how often that event fires though, last time I checked it fired once every 12 seconds or something so you may need to do some magic stuff to have it fire more often - say a thread to call Draw, or some other nifty stuff)
I have used successfuly OpenTK library (http://www.opentk.com/).
Works with WPF/Windows Forms.

C# Forms Animation

I'm wanting to create an animation in C# such as what you would see in a slot machine where the pictures spin round. I know I could manually move the location of a PictureBox or something like that but that seems like not a good idea to me.
How would you guys do it? It doesn't actually matter whether its in standard forms or WPF or anything else similar. Possibly using XNA?
I suggest you use WPF.
With Expression Blend you can easily do the animation you need.
I think I've already seen a slot machine WPF sample somewhere on the web.
I'll search for it and post it if I find it again
Edit
Nope it was a silverlight application, but code is almost the same. Here is the link:
http://www.dolittle.com/Silverlight/SlotMachine/SlotMachine.html
Anyway, if you find that approach to difficult I suggest you read a bit about simple WPF programatically driven animations. They're very easy to do, and with a few lines of code you can accomplish your needs.
Best regards

Windows Form or WPF, to code or not code

I am planning to develop a UI control suite (open source) on .net because there is hardly such things as free or open source out in the market. But I am not really able to decide the following factors before going into design phase:
Should I write it for Winforms only?
Should I write it for WPF only?
Or, should I write it for both?
Which one would be more effort effective in the long run and help the community better? Can you guys please help me to sort this things out?
'Writing it for both' is basically 'write it twice', as I can't imagine much would be shared.
I think if I was suddenly filled with the idea that the world needed yet more 3rd party controls, I would write them for WPF/Silverlight/WP7.
WPF, but it's just my opinion.
Windows OSs that are supported (XP, Vista, 7) all support it, and WPF is the future. I don't see Winforms' death in the proximity, but we should support things that are right now actively supported.
It's like developing for IE6 instead of Firefox/Safari/Chrome/Opera. Most of us don't see IE6 dying, but we have to move forward.

How to program this game with basic C# and ASP .NET knowledge?

I would love to brainstorm with you guys on how to program this game (originally a flash game) in C#. I'm studying C# right now and my knowledge is pretty limited: I know the pretty much the basics of C# but I need your help with the concept.
Here's the game:
http://www.composica.com/product/samples/AstroHops/content/scaler.html
alt text http://img12.imageshack.us/img12/5735/frogim3.jpg
I thought about using imagebutton for each lilypad that would trigger a modal window with question.
I also thought about placing a picture of a frog on each lilypad, set to visible = false. When the a certain lilypad is selected the frog's visibility will be set to true.
Any thoughts, ideas, suggestion on how to this better?
Maybe links to a similar game coded with c#?
Thanks!
ASP.NET (and HTML generally) isn't directly suited to compete with flash - they simply work differently. Perhaps look at Silverlight; that is the MS offering that is closest to flash, and you can use C#.
Marc solution seems like best one, but if you really need it in C# (in ASP.NET Right?)
then you might consider AJAX but yea it is sort of bad approach.
If it is winforms you are talking about, then i would consider using some 2d graphics engine for that. otherwise your idea CAN work with the default .net forms, it just wont look very nice....
you might take a look at this, seems like a nice start point for working with directX and c#
http://www.csharp-home.com/index/tiki-print_article.php?articleId=146
Good luck with your project!

Categories

Resources