Inheritance: MetroFramework.Controls.MetroUserControl
コード例 #1
0
ファイル: userMunicipios.cs プロジェクト: matBatista/uninfe
        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);
            }
        }
コード例 #2
0
ファイル: userMunicipios.cs プロジェクト: akretion/uninfe
        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);
            }
        }