Ejemplo n.º 1
0
        private void olv_Modules_FormatCell(object sender, SynapseAdvancedControls.FormatCellEventArgs e)
        {
            if (e.ColumnIndex == this.col_version.Index || e.ColumnIndex == this.prd_gvf.Index)
            {
                SynapseModule    prd = (SynapseModule)e.Model;
                ACCSynapseModule acc = (ACCSynapseModule)(from m in Acc_Modules where m.ID == prd.ID select m).FirstOrDefault();

                if (acc == null)
                {
                    acc = (ACCSynapseModule)(from m in Acc_Modules where m.TECHNICALNAME == prd.TECHNICALNAME select m).FirstOrDefault();
                }

                if (prd != null && prd.VERSION != acc.VERSION && e.ColumnIndex == this.col_version.Index)
                {
                    e.SubItem.BackColor = Color.Orange;
                }
                if (prd != null && prd.gvf_Version(SynapseModule.SynapseModuleMode.Production) != acc.gvf_Version(ACCSynapseModule.SynapseModuleMode.Development) && e.ColumnIndex == this.prd_gvf.Index)
                {
                    e.SubItem.BackColor = Color.Orange;
                }
            }
        }