public Orders() { { InfoWindowsDervices.Init(); { for (int i = 0; i < InfoWindowsDervices.GetCountSrv(); i++) { string[] s_in = InfoWindowsDervices.GetInfoSrv(i); this.Add( new Order { NameSrv = s_in[0], PID = int.Parse(s_in[1]), Description = s_in[2], Status = s_in[3], GroupSystem = s_in[4], PathSrv = s_in[5] } ); if (i > InfoWindowsDervices.GetCountSrv() - 2) { break; } } } } }
public OrdersIcon() { for (int i = 0; i < InfoWindowsDervices.GetCountSrv(); i++) { this.Add(new OrderIcon { Icon = ".\\Images\\IconSrv.png" }); if (i > 11 + 0 * InfoWindowsDervices.GetCountSrv() - 2) { break; } } }