Inheritance: MetroFramework.Controls.MetroUserControl
Esempio n. 1
0
        public override void UpdateControles()
        {
            base.UpdateControles();

            if (grid1 == null)
            {
                this.metroTabControl1.SelectedIndex = 0;

                grid1            = new NFSe.userGrid1();
                grid1.Parent     = this.metroTabPage1;
                grid1.Location   = new Point(1, 1);
                grid1.Dock       = DockStyle.Fill;
                grid1.umunicipio = this;

                grid2          = new NFSe.userGrid2();
                grid2.Parent   = this.metroTabPage2;
                grid2.Location = new Point(1, 1);
                grid2.Dock     = DockStyle.Fill;

                this.metroTabControl1.SelectedIndexChanged += metroTabControl1_SelectedIndexChanged;

                //grid1.metroGrid1.BackgroundColor =
                //grid2.dgvDireto.BackgroundColor = MetroFramework.Drawing.MetroPaint.BackColor.Form(uninfeDummy.mainForm.uTheme);
            }
        }
Esempio n. 2
0
        public override void UpdateControles()
        {
            base.UpdateControles();

            if (grid1 == null)
            {
                this.metroTabControl1.SelectedIndex = 0;

                grid1 = new NFSe.userGrid1();
                grid1.Parent = this.metroTabPage1;
                grid1.Location = new Point(1, 1);
                grid1.Dock = DockStyle.Fill;
                grid1.umunicipio = this;

                grid2 = new NFSe.userGrid2();
                grid2.Parent = this.metroTabPage2;
                grid2.Location = new Point(1, 1);
                grid2.Dock = DockStyle.Fill;

                this.metroTabControl1.SelectedIndexChanged += metroTabControl1_SelectedIndexChanged;

                //grid1.metroGrid1.BackgroundColor =
                    //grid2.dgvDireto.BackgroundColor = MetroFramework.Drawing.MetroPaint.BackColor.Form(uninfeDummy.mainForm.uTheme);
            }
        }