Mono is RAD
RAD as in Rapid Application Development. So what can you write in less than 10minutes using Mono ? A simple enough text editor for example. This “plain text editor” doesn’t do much, you can open a text file and save it. You can open a text as an argument when running the program: ‘mono Plaintext.exe textfile.txt’ And that’s pretty much it.
![]()
I wrote these few lines of code to show how easy and quickly you can develop Gnome applications using Mono. I hear now and then that some of you are eager to learn Mono and want to code something for yourself. So this is for you, check out the source of this tiny app and try to make sense. I think it’s commented enough. There are “read text from file” and “save to file” functions that may be interesting to examine, how to use argument when running a program and how to use Glade GUI with your code.
Here is a source with Glade file: plaintext.tar.gz
You will need Mono and Gtk-sharp installed, use this command to compile:
mcs PlainText.cs -pkg:glade-sharp-2.0 -resource:gui.glade
You can open gui.glade file with Glade Interface Designer to play with GUI a bit and see how it’s done. There is no Save As functionality(well the Save actually acts as Save As), no Copy,Paste,Undo… yet, but this can be done in another 5minutes. I’ll probably add these later, but this is all for now. I hope someone will find this useful and maybe I’ll post more of these.
And what else you can do with a few lines of Mono code ? Simple Web Browser (I think this is a bit old, but still useful)