>public int LRemoteS1 { get; set; } // LRemoteS1. Layouts.LayoutId of the Salespoint Remote 1 Save > public int LRemoteF1 { get; set; } // LRemoteF1. Layouts.LayoutId of the Salespoint Remote 1 Finalize > public int LRemoteS2 { get; set; } // LRemoteS2. Layouts.LayoutId of the Salespoint Remote 2 Save > public int LRemoteF2 { get; set; } // LRemoteF2. Layouts.LayoutId of the Salespoint Remote 2 Finalize > public int LRemoteS3 { get; set; } // LRemoteS3. Layouts.LayoutId of the Salespoint Remote 3 Save > public int LRemoteF3 { get; set; } // LRemoteF3. Layouts.LayoutId of the Salespoint Remote 3 Finalize>
>for (int i=1; i<=8; i++ ) > { > if (model.LSummary > 0) > model.LSummaryText = _layoutAdapter.GetLayoutName(model.LSummary); > else > model.LSummaryText = _layoutAdapter.GetLayoutName(prefssl == null ? 0 : prefssl.DlSummary); > }>
// var instance = new YourClass(); // ... for (int i = 1; i <= 3; i++) { var v = instance.GetType().GetProperty("LRemoteF"+i).GetValue(instance); // Get instance.GetType().GetProperty("LRemoteF"+i).SetValue(instance, v*100); // Set }