Figure 27-9.
The inline menu editor
As you can see, Visual Studio was kind enough to establish an entire menu system on your
behalf. Now, open your designer-maintained file (MainWindow.Designer.cs) and note the numerous
lines of code added to InitializeComponent(), as well as several new member variables that repre-
sent your menu system (as you may agree, designer tools are
good things). Finally, flip back to the
designer and undo the previous operation by clicking the Ctrl+Z keyboard combination. This will
bring you back to the initial menu editor and remove the generated code. Using the menu designer,
simply type in a topmost File menu item followed by an Exit submenu (see Figure 27-10).
Do'stlaringiz bilan baham: