Section outline
-
Lesson 8. Basic .Net libraries. Strings and regular expressions.
Objective: is to form in students fundamental knowledge about the event-driven programming paradigm and practical skills in creating graphical user interfaces using Windows Forms technology. The student must master the concept of a delegate as an object-oriented and safe pointer to methods, realize its role in supporting the functioning of events, and understand the advantages of calling functions defined during program execution. During the training, special attention is paid to understanding the mechanism of events as automatic notifications about user actions or changes in the state of the system, as well as studying the architecture of interaction between the event source object and handler methods. Students must master the skills of designing windowed applications using the Form base class and the System.Windows.Forms namespace, learn how to configure the properties of forms and controls, such as title text, background color, and window state. An important aspect is mastering two ways of creating event handlers: programmatically, through direct initialization of delegates, and visually, using the development environment tools. The practical component involves the ability to independently implement application responses to interactive actions (for example, mouse clicks), use MessageBox dialog boxes for feedback, and manage the application lifecycle through the Application.Run method. As a result of studying the material, the student should be able to analyze user interface requirements to select optimal control elements and design flexible, interactive Windows applications with a clear separation of event handling logic and visual presentation.