//_________________________________________________________________________________________________ //_________________________________________________________________________________________________ private ResultProfile PerformHeavyOperation(FIMServer FIMSrv) { ResultProfile r = new ResultProfile(); r.r = "success"; if (FIMSrv.runPf == "DJ") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflEDIS); } } if (FIMSrv.runPf == "FJ") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflEFIS); } } if (FIMSrv.runPf == "DS") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflE); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflDI); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflDS); } } } if (FIMSrv.runPf == "FS") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflE); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflFI); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflFS); } } } if (FIMSrv.runPf == "DSNOE") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflDI); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflDS); } } } if (FIMSrv.runPf == "FSNOE") { for (int i = 0; i < FIMSrv.MAs.Count && r.r == "success"; i++) { if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflFI); } if (r.r == "success") { r = WmiHelper.RunProfile(FIMSrv, i, FIMSrv.MAs[i].pflFS); } } } return(r); }