Ejemplo n.º 1
0
        private static void InitMainForm()
        {
            MainForm = new Form("MainForm", Colors.DarkGray);

            MainForm.AddMenuStrip(
                MenuHelper.CreateMenuItem("Common-1",
                                          MenuHelper.CreateMenuItem("Labels", (sender, point) => LabelsForm.Show()),
                                          MenuHelper.CreateMenuItem("Buttons", (sender, point) => ButtonsForm.Show())));
        }
Ejemplo n.º 2
0
        private LabelsForm()
        {
            _form = new Form("LabelsForm");

            _form.AddMenuStrip(
                MenuHelper.CreateMenuItem("Nav",
                                          MenuHelper.CreateMenuItem("Home", (sender, point) => Program.ShowMainForm())),
                MenuHelper.CreateMenuItem("Test",
                                          MenuHelper.CreateMenuItem("Fonts", TestFonts),
                                          MenuHelper.CreateMenuItem("Size", TestSize),
                                          MenuHelper.CreateMenuItem("Alignment", TestAlignment),
                                          MenuHelper.CreateMenuItem("Padding", TestPadding)
                                          ));
        }
Ejemplo n.º 3
0
        private ButtonsForm()
        {
            _form = new Form("ButtonsForm");

            _form.AddMenuStrip(
                MenuHelper.CreateMenuItem("Nav",
                                          MenuHelper.CreateMenuItem("Home", (sender, point) => Program.ShowMainForm())),
                MenuHelper.CreateMenuItem("Test",
                                          MenuHelper.CreateMenuItem("Size", TestSize) /*,
                                                                                       * MenuHelper.CreateMenuItem("Alignment", TestAlignment),
                                                                                       * MenuHelper.CreateMenuItem("Padding", TestPadding)*/,
                                          MenuHelper.CreateMenuItem("Events", TestEvents)
                                          ));
        }