private ICompensation GetICompensation(CompensationMode comp) { if (comp == CompensationMode.ELVSS) { return(factory.GetELVSSCompensation()); } else if (comp == CompensationMode.AOD) { return(factory.GetAODCompensation()); } else if (comp == CompensationMode.Black) { return(factory.GetBlackCompensation()); } else if (comp == CompensationMode.White) { return(factory.GetWhiteCompensation()); } else if (comp == CompensationMode.GrayLowRef) { return(factory.GetGrayLowRefCompensation()); } else if (comp == CompensationMode.Main) { return(factory.GetMainCompensation()); } return(null); }
private void Sub_Module_Compensation(CompensationMode comp) { try { GetICompensation(comp).Compensation(); } catch (Exception ex) { api.WriteLine("[Sub_Module_Compensation] : " + ex.Message); } }