[Mono-list] Try SWF first then fallback to console on NotImplementedException?
Sijmen Mulder <firstname.lastname@example.org>
Fri, 20 Aug 2004 22:15:22 +0200
I would like to create a simple graphical user interface for the
benchmarker of ManagedGL, but keeping the console interface as backup.
Now the problem is that I want to use Windows Forms. Linux keeps the
console interface, which is easier for the users - they only need to
have X, Mono, and SDL to run it, and they don't have to install GNOME
or GTK if they don't want it. Windows users already have got Windows
Forms, so that is no problem. Also, I am most comfortable with Windows
The problem is that I want to try to initalize Windows Forms, and
fallback on console if that fails. Is that possible? My guess would be
to let the thing initialize and try to catch a NotImplementedException
and then switch to console. If no such exception is cought, the
program runs in graphical mode. Is that the way to go?
My explanation might be a bit unclear, so my apologies for that.
Oh - if GTK# development has gotten any more reliable on Windows than
before, I might use it. Renember, it is just for a quick small tool
and I don't feel like studying GTK# when it is still a small nightmare
If GTK# development is very easy on Windows/#Develop please forgive me
the above statements.
'May the Lord bless you and protect you. May the Lord smile on you
and be gracious to you. May the Lord show you his favor and give you
'De Heer zegent je, en Hij bewaart je. De Heer kijkt met liefde naar
je, en Hij is je genadig. De Heer bedenkt het goede voor je, en geeft