Mono: Using the Glade design interface
Monodevelop does not interface design tools, but you can design the interface through the Glade, then write code in Monodevelop, using the monodevelop to develop the Glade program is particularly simple and convenient.
First create a GLADE solution:
Figure 2.4.0
Open the Glade program, select New GTK Project, design our program interface:
Figure 2.4.1
Here is only a Window (Window1) and a Button (Button1), and Window1 has a delete_event event, button1 has a Clicked event.
Figure 2.4.2
Save this file to the directory of the newly built above, override the gui.glade file.
Modify the main.cs file, because we need to control Button1 in the program, so add the statement of Button1,
[Glade.Widget]
Button button1;
Here, it also added a declaration of Window1.
Because we set two events in the design interface, two event processing methods are added to the program.
Figure 2.4.3
Press F8 compiler to run the program in the terminal:
Figure 2.4.4
Developing the C # class library will no longer talk about one chapter, because it is too simple, nothing more than developing a class library for other programs, don't tell me what you don't know what is called class library.