예제 #1
0
        //Cleaner but General_form should be just form

        /*public Simulation_main_menu(int Sub_menu_width, General_form General_form, FontFamily Dosis_font_family)
         * {
         *  this.BackColor = Color.FromArgb(196, 196, 198);
         *  this.Size = new Size(General_form.Width - Sub_menu_width, General_form.Height);
         *  Initialize(General_form, Sub_menu_width);
         *  General_form.SizeChanged += (object o, EventArgs EA) =>
         *  {
         *      this.Size = new Size(General_form.Width - Sub_menu_width, General_form.Height);
         *      this.Controls.Clear();
         *      Initialize(General_form, Sub_menu_width);
         *  };
         * }*/

        private void Initialize(Form Form, int Sub_menu_width)
        {
            int          _ButtonSize = User_Controls.Config.standardMainMenu["infobuttonsize"];
            RoundButtons Info_button = new RoundButtons(new Size(_ButtonSize, _ButtonSize), new Point(User_Controls.Config.standardMainMenu["infoX"], Form.Height - User_Controls.Config.standardMainMenu["infoYfromtop"]), "../../User Interface Recources/Info_Button.png");

            this.Controls.Add(Info_button);
            BitmapController.bitmapController = new BitmapController();
        }
예제 #2
0
        private void Initialize(Form Form, int Sub_menu_width)
        {
            this.BackColor = Color.FromArgb(196, 196, 198);
            this.Size      = new Size(Form.Width - Sub_menu_width, Form.Height);
            int          _ButtonSize = User_Controls.Config.standardMainMenu["infobuttonsize"];
            RoundButtons Info_button = new RoundButtons(new Size(_ButtonSize, _ButtonSize), new Point(User_Controls.Config.standardMainMenu["infoX"], Form.Height - User_Controls.Config.standardMainMenu["infoYfromtop"]), "../../User Interface Recources/Info_Button.png");

            this.Controls.Add(Info_button);
        }
예제 #3
0
        // Logo
        public CurvedButtons(Form Form, int Curve)
        {
            curve         = Curve;
            this.Size     = new Size(175, 70);
            this.SizeMode = PictureBoxSizeMode.StretchImage;
            this.Image    = Image.FromFile("../../User Interface Recources/Logo.png");
            this.SizeMode = PictureBoxSizeMode.Zoom;
            Size         s     = new Size(30, 30);
            RoundButtons Green = new RoundButtons(s, this.Location, "Green", Form);

            this.Controls.Add(Green);
            RoundButtons Yellow = new RoundButtons(s, this.Location, "Yellow", Form);

            this.Controls.Add(Yellow);
            RoundButtons Red = new RoundButtons(s, this.Location, "Red", Form);

            this.Controls.Add(Red);
        }