Exemplo n.º 1
0
        public frmHome()
        {
            LanguageHelper.SetLang(Profile.getLang(), this, typeof(frmHome));

            InitializeComponent();
            panel1.Visible = false;

            Text += ((decimal)App.VERSION / 10).ToString("0.0");

            if (Profile.networkMode() == Profile.NetworkMode.LAN)
            {
                rbLan.Checked = true;
            }
            else
            {
                rbWan.Checked = true;
            }

            if (Profile.boxResolution() == Profile.BoxResolution.R1280_720)
            {
                rb1280.Checked = true;
                LocationCalc.setScreen(1280, 720);
            }
            else
            {
                rb1920.Checked = true;
                LocationCalc.setScreen(1920, 1080);
            }

            // Initialize MaterialSkinManager
            materialSkinManager = MaterialSkinManager.Instance;
            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;
            // materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE);
            materialSkinManager.ColorScheme = new ColorScheme(Primary.Indigo500, Primary.Indigo700, Primary.Indigo100, Accent.Pink200, TextShade.WHITE);

            frmMain progEdit = new frmMain();

            tbcHome.TabPages[0].Controls.Add(progEdit);
            progEdit.Dock = DockStyle.Fill;

            ProgramRelease progRel = new ProgramRelease();

            // ucProgSend.Size = tbcHome.TabPages[1].Size;
            tbcHome.TabPages[1].Controls.Add(progRel);
            progRel.Dock = DockStyle.Fill;

            BgTemplate bgTemplate = new BgTemplate(tbcHome, progEdit);

            // ucProgSend.Size = tbcHome.TabPages[1].Size;
            tbcHome.TabPages[2].Controls.Add(bgTemplate);
            bgTemplate.Dock = DockStyle.Fill;

            BoxCtrl boxCtrl = new BoxCtrl();

            // ucProgSend.Size = tbcHome.TabPages[1].Size;
            tbcHome.TabPages[3].Controls.Add(boxCtrl);
            boxCtrl.Dock = DockStyle.Fill;
        }
Exemplo n.º 2
0
        private void rb1920_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton rb = sender as RadioButton;

            if (rb != null)
            {
                if (rb.Checked)
                {
                    LocationCalc.setScreen(1920, 1080);
                    Profile.boxResolution(Profile.BoxResolution.R1920_1080);
                }
            }
        }