Пример #1
0
        public KitContainer(string name)
            : base(name)
        {
            base.BackColor = Color.FromArgb(32, 69, 79);

            moduleSwitcher = new ModuleSwitcher();

            btnRight      = new Button("btnRight");
            btnRight.Size = new Size(30, 20);
            btnRight.Text = "->";
            Skins.SkinManager.LoadButtonGui(btnRight);
            btnRight.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(btnRight_Click);

            btnLeft      = new Button("btnLeft");
            btnLeft.Size = new Size(30, 20);
            btnLeft.Text = "<-";
            Skins.SkinManager.LoadButtonGui(btnLeft);
            btnLeft.Click += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(btnLeft_Click);

            lblModuleName           = new Label("lblModuleName");
            lblModuleName.BackColor = Color.Transparent;
            lblModuleName.AutoSize  = true;
            lblModuleName.Location  = new Point(0, 0);
            lblModuleName.ForeColor = Color.WhiteSmoke;

            this.AddWidget(btnRight);
            this.AddWidget(btnLeft);
            this.AddWidget(lblModuleName);

            //SetActiveModule(0);
        }
Пример #2
0
        public KitContainer(string name)
            : base(name)
        {
            base.BackColor = Color.FromArgb(32, 69, 79);

            moduleSwitcher = new ModuleSwitcher();

            btnRight = new Button("btnRight");
            btnRight.Size = new Size(30, 20);
            btnRight.Text = "->";
            Skins.SkinManager.LoadButtonGui(btnRight);
            btnRight.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(btnRight_Click);

            btnLeft = new Button("btnLeft");
            btnLeft.Size = new Size(30, 20);
            btnLeft.Text = "<-";
            Skins.SkinManager.LoadButtonGui(btnLeft);
            btnLeft.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(btnLeft_Click);

            lblModuleName = new Label("lblModuleName");
            lblModuleName.BackColor = Color.Transparent;
            lblModuleName.AutoSize = true;
            lblModuleName.Location = new Point(0, 0);
            lblModuleName.ForeColor = Color.WhiteSmoke;

            this.AddWidget(btnRight);
            this.AddWidget(btnLeft);
            this.AddWidget(lblModuleName);

            //SetActiveModule(0);
        }