public clsManipuladorColunas Clone() { clsManipuladorColunas clsRetorno = new clsManipuladorColunas(this.ConexaoBD, m_nIdExportador, m_nIdIdioma, m_strLinguaEstrangeira); clsRetorno.m_arlColunas = this.m_arlColunas; return(clsRetorno); }
// *************************************************************************************************** #endregion #region Construtores e Destrutores public frmFColunas(ref mdlTratamentoErro.clsTratamentoErro tratadorErro, string strEnderecoExecutavel, System.Drawing.Color clrCor, int nIdIdioma, string strIdioma, ref clsManipuladorColunas cls_mac_Colunas) { m_cls_ter_tratadorErro = tratadorErro; m_strEnderecoExecutavel = strEnderecoExecutavel; m_clrCor = clrCor; m_nIdIdioma = nIdIdioma; m_strIdioma = strIdioma; m_cls_mac_Colunas = cls_mac_Colunas.Clone(); InitializeComponent(); // Cor this.BackColor = m_clrCor; for (int nCont = 0; nCont < this.Controls.Count; nCont++) { this.Controls[nCont].BackColor = this.BackColor; for (int nCont2 = 0; nCont2 < this.Controls[nCont].Controls.Count; nCont2++) { if ((this.Controls[nCont].Controls[nCont2].GetType().ToString() != "mdlComponentesGraficos.ListView") && (this.Controls[nCont].Controls[nCont2].GetType().ToString() != "System.Windows.Forms.TreeView")) { this.Controls[nCont].Controls[nCont2].BackColor = this.BackColor; } for (int nCont3 = 0; nCont3 < this.Controls[nCont].Controls[nCont2].Controls.Count; nCont3++) { if ((this.Controls[nCont].Controls[nCont2].Controls[nCont3].GetType().ToString() != "mdlComponentesGraficos.ListView") && (this.Controls[nCont].Controls[nCont2].Controls[nCont3].GetType().ToString() != "System.Windows.Forms.TreeView")) { this.Controls[nCont].Controls[nCont2].Controls[nCont3].BackColor = this.BackColor; } } } } }
public void retornaValores(out clsManipuladorColunas cls_mac_Colunas) { cls_mac_Colunas = m_cls_mac_Colunas; }