Пример #1
0
        public MainForm(IUiAction[] actions, PictureBox pictureBox, BaseApplication baseApplication)
        {
            this.baseApplication = baseApplication;
            var mainMenu = new MenuStrip();

            mainMenu.Items.AddRange(actions.ToMenuItems());
            Controls.Add(mainMenu);
            ClientSize          = new Size(600, 400);
            this.pictureBox     = pictureBox;
            pictureBox.SizeMode = PictureBoxSizeMode.AutoSize;
            FormBorderStyle     = FormBorderStyle.FixedSingle;
            Closed += (a, b) => baseApplication.Close();
        }