protected override void SetDataSource(SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase adapter, int pageNumber, int pageSize, string sortField, bool isSortAscending) { IEnumerable<PartnerEntity> partnerCollection = PartnerEntity.FetchPartnerCollectionForPaging(adapter, null, null, pageNumber, pageSize, sortField, isSortAscending); this.DataSource = partnerCollection; this.NoOfRecords = PartnerEntity.GetNumberOfEntities(adapter, null); }
public BOLL(MA ma,double lamda) { var sd = new SD(ma); this.lamda = lamda; this.mb = ma.Value; this.up = this.mb + lamda * sd.Value; this.dn = this.mb - lamda * sd.Value; }
public void ValueTest() { MA ma = new MA(20); // TODO: Initialize to an appropriate value ma.AddRange(samples); SD target = new SD(ma); // TODO: Initialize to an appropriate value double actual; actual = Math.Round(target.Value,4); Assert.AreEqual(expected, actual); }
protected override void SetDataSource(SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase adapter, int pageNumber, int pageSize, string sortField, bool isSortAscending) { PrefetchPath2 prefetchPath = new PrefetchPath2(EntityType.SudionikEntity); prefetchPath.Add(SudionikEntity.PrefetchPathSudionikGrupa); IEnumerable<SudionikEntity> sudionikCollection = SudionikEntity.FetchSudionikCollectionForPaging(adapter, null, null, pageNumber, pageSize, sortField, isSortAscending); this.DataSource = sudionikCollection; this.NoOfRecords = SudionikEntity.GetNumberOfEntities(adapter, null); }
public async Task <IActionResult> Index() { detailCart = new OrderDetailsCart() { OrderHeader = new Models.OrderHeader()//creating a new property of order header }; detailCart.OrderHeader.OrderTotal = 0;//because we'll be calculating that when we need userid of the user that is logged in, to retrieve all the items in the shopcart the user has var claimsIdentity = (ClaimsIdentity)User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); //retrieving the user id var cart = _db.ShoppingBag.Where(c => c.ApplicationUserId == claim.Value); //retrieving the shopping cart inside if (cart != null) { detailCart.ListCart = cart.ToList(); } foreach (var list in detailCart.ListCart)//Calculate the order total so far { list.MenuItem = await _db.MenuItem.FirstOrDefaultAsync(m => m.Id == list.MenuItemId); detailCart.OrderHeader.OrderTotal += (list.MenuItem.Price * list.Count); list.MenuItem.Description = SD.ConvertToRawHtml(list.MenuItem.Description);//converts to raw html ad stores it in the menu item if (list.MenuItem.Description.Length > 100) { list.MenuItem.Description = list.MenuItem.Description.Substring(0, 99) + "..."; } } detailCart.OrderHeader.OrderTotalOriginal = detailCart.OrderHeader.OrderTotal; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { detailCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromDb = await _db.Coupon.Where(c => c.Name.ToLower() == detailCart.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); detailCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, detailCart.OrderHeader.OrderTotalOriginal); } return(View(detailCart)); }
public async Task <IActionResult> Summary() { DetailsCart = new OrderDetailsCart() { OrderHeader = new OrderHeader() { OrderTotal = 0 } }; var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); var applicationUser = await userService.GetUserById(claim.Value); var cart = await shoppingCartService.GetShoppingCartsByUserId(claim.Value); if (cart != null) { DetailsCart.listCart = cart.ToList(); } //var total = DetailsCart.listCart.Select(s => new { total = s.MenuItem.Price * s.Count }); foreach (var list in DetailsCart.listCart) { list.MenuItem = await menuItemService.GetMenuItemById(list.MenuItemId); DetailsCart.OrderHeader.OrderTotal = DetailsCart.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); } DetailsCart.OrderHeader.OrderTotalOriginal = DetailsCart.OrderHeader.OrderTotal; DetailsCart.OrderHeader.PickUpDate = DateTime.Now; DetailsCart.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; DetailsCart.OrderHeader.PickupName = applicationUser.Name; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { DetailsCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromDb = await couponService.GetCouponByName(DetailsCart.OrderHeader.CouponCode); DetailsCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, DetailsCart.OrderHeader.OrderTotalOriginal); } return(View(DetailsCart)); }
public async Task <IActionResult> Index() { DetailsCart = new OrderDetailsCart() { OrderHeader = new OrderHeader() { OrderTotal = 0 } }; var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); var cart = await shoppingCartService.GetShoppingCartsByUserId(claim.Value); if (cart != null) { DetailsCart.listCart = cart.ToList(); } //var total = DetailsCart.listCart.Select(s => new { total = s.MenuItem.Price * s.Count }); foreach (var list in DetailsCart.listCart) { list.MenuItem = await menuItemService.GetMenuItemById(list.MenuItemId); DetailsCart.OrderHeader.OrderTotal = DetailsCart.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); list.MenuItem.Description = SD.ConvertToRawHtml(list.MenuItem.Description); if (list.MenuItem.Description.Length > 100) { list.MenuItem.Description = list.MenuItem.Description.Substring(0, 99) + "..."; } } DetailsCart.OrderHeader.OrderTotalOriginal = DetailsCart.OrderHeader.OrderTotal; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { DetailsCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromDb = await couponService.GetCouponByName(DetailsCart.OrderHeader.CouponCode); DetailsCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, DetailsCart.OrderHeader.OrderTotalOriginal); } return(View(DetailsCart)); }
public async Task <IActionResult> Summery() { DetailsCartVM = new OrderDetailsCartViewModel() { OrderHeader = new Models.OrderHeader() }; DetailsCartVM.OrderHeader.OrderTotal = 0; var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier).Value; ApplicationUser user = await _db.ApplicationUsers.FirstOrDefaultAsync(u => u.Id == claim); var cartList = await _db.ShoppingCart.Where(u => u.ApplicationUserId == claim).ToListAsync(); if (claim != null) { DetailsCartVM.ShoppingCartList = cartList; } foreach (var list in cartList) { list.MenuItem = await _db.MenuItems.FirstOrDefaultAsync(u => u.MenuItemId == list.MenuItemId); DetailsCartVM.OrderHeader.OrderTotal = DetailsCartVM.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); } DetailsCartVM.OrderHeader.OrderTotalOriginal = DetailsCartVM.OrderHeader.OrderTotal; DetailsCartVM.OrderHeader.PickUpName = user.Name; DetailsCartVM.OrderHeader.PhoneNumber = user.PhoneNumber; DetailsCartVM.OrderHeader.PickUpTime = DateTime.Now; DetailsCartVM.OrderHeader.PickUpDate = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { DetailsCartVM.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var coupon = _db.Coupons.FirstOrDefault(u => u.CouponName.ToLower() == DetailsCartVM.OrderHeader.CouponCode.ToLower()); DetailsCartVM.OrderHeader.OrderTotal = SD.DiscountedPrice(coupon, DetailsCartVM.OrderHeader.OrderTotalOriginal); } return(View(DetailsCartVM)); }
public override void Run() { ITextEditor textEditor = SD.GetActiveViewContentService <ITextEditor>(); if (textEditor == null) { return; } string clipboardText = SD.Clipboard.GetText(); if (string.IsNullOrEmpty(clipboardText)) { return; } using (textEditor.Document.OpenUndoGroup()) Run(textEditor, clipboardText); }
//----------------------------------------------------------------------------------------------// //Get public async Task <IActionResult> Summary() { detailCart = new OrderDetailsCart() { OrderHeader = new Models.OrderHeader() }; detailCart.OrderHeader.OrderTotal = 0; var claimsIdentity = (ClaimsIdentity)User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); //--> we want to know Logged in users. ApplicationUser applicationUser = await _db.ApplicationUser.Where(c => c.Id == claim.Value).FirstOrDefaultAsync(); var cart = _db.ShoppingCart.Where(c => c.ApplicationUserId == claim.Value); //--> Retriev the shopping cart. if (cart != null) { detailCart.listCart = cart.ToList(); } foreach (var list in detailCart.listCart) { list.MenuItem = await _db.MenuItem.FirstOrDefaultAsync(m => m.Id == list.MenuItemId); detailCart.OrderHeader.OrderTotal = detailCart.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); } detailCart.OrderHeader.OrderTotalOriginal = detailCart.OrderHeader.OrderTotal; detailCart.OrderHeader.PickUpName = applicationUser.Name; detailCart.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; detailCart.OrderHeader.PickUpTime = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { detailCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); //--> we need to check that session and display the price accordingly. var couponFromDb = await _db.Coupon.Where(c => c.Name.ToLower() == detailCart.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); detailCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, detailCart.OrderHeader.OrderTotalOriginal); } return(View(detailCart)); }
public void Initialize() { if (initialized) { return; } initialized = true; projectOptions = new Dictionary <string, AlFormattingPolicy>(); // Handlers for solution loading/unloading var projectService = SD.GetService <IProjectService>(); if (projectService != null) { SD.ProjectService.SolutionOpened += SolutionOpened; SD.ProjectService.SolutionClosed += SolutionClosed; } }
public SDProjectService() { allSolutions = new NullSafeSimpleModelCollection <ISolution>(); allProjects = allSolutions.SelectMany(s => s.Projects); projectBindings = SD.AddInTree.BuildItems <ProjectBindingDescriptor>("/SharpDevelop/Workbench/ProjectBindings", null); targetFrameworks = SD.AddInTree.BuildItems <TargetFramework>("/SharpDevelop/TargetFrameworks", null); SD.GetFutureService <IWorkbench>().ContinueWith(t => t.Result.ActiveViewContentChanged += ActiveViewContentChanged).FireAndForget(); var applicationStateInfoService = SD.GetService <ApplicationStateInfoService>(); if (applicationStateInfoService != null) { applicationStateInfoService.RegisterStateGetter("ProjectService.CurrentSolution", delegate { return(CurrentSolution); }); applicationStateInfoService.RegisterStateGetter("ProjectService.CurrentProject", delegate { return(CurrentProject); }); } SD.Services.AddService(typeof(IProjectServiceRaiseEvents), this); }
public async Task <IActionResult> Summary() { orderDetailCartVM = new OrderDetailCartViewModel() { OrderHeader = new Models.OrderHeader() }; orderDetailCartVM.OrderHeader.OrderTotal = 0; //Find the user var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); ApplicationUser applicationUser = await context.ApplicationUsers.Where(c => c.Id == claim.Value).FirstOrDefaultAsync(); var cart = context.ShoppingCarts.Where(c => c.ApplicationUserId == claim.Value); //Get the context shopping cart using the user value //If cart has value put viewModel === ListShoppingCarts if (cart != null) { orderDetailCartVM.ListShoppingCarts = cart.ToList(); } foreach (var item in orderDetailCartVM.ListShoppingCarts) { item.MenuItem = await context.MenuItems.FirstOrDefaultAsync(m => m.Id == item.MenuItemId); orderDetailCartVM.OrderHeader.OrderTotal = orderDetailCartVM.OrderHeader.OrderTotal + (item.MenuItem.Price * item.Count); } orderDetailCartVM.OrderHeader.OrderTotalOriginal = orderDetailCartVM.OrderHeader.OrderTotal; orderDetailCartVM.OrderHeader.PickupName = applicationUser.Name; orderDetailCartVM.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; orderDetailCartVM.OrderHeader.PickUpTime = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { orderDetailCartVM.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromdb = await context.Coupons.Where(c => c.Name.ToLower() == orderDetailCartVM.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); orderDetailCartVM.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromdb, orderDetailCartVM.OrderHeader.OrderTotalOriginal); } return(View(orderDetailCartVM)); }
public async Task <IActionResult> Export(int page, string phoneNumber, string day, string month, string year, string er, string min, string max, string location, string destination, string roaming, string phoneNumberCheck, string dateTimeCheck, string erCheck, string totalCostCheck, string locationCheck, string destinationCheck, string roamingCheck) { string webRootPath = _hostingEnviroment.WebRootPath; var uploads = Path.Combine(webRootPath, "ExportFiles"); string time = DateTime.Now.Day + "-" + DateTime.Now.Month + "-" + DateTime.Now.Year + " " + DateTime.Now.Hour + "-" + DateTime.Now.Minute + "-" + DateTime.Now.Second; var path = Path.Combine(uploads, "sMS " + time + ".csv"); using (var filesStream = new FileStream(path, FileMode.Create)) { } StreamWriter stw = new StreamWriter(Path.Combine(uploads, "sMS " + time + ".csv")); string httpSessionName = SD.HttpSessionString(new List <string> { "SMS", page.ToString(), phoneNumber, day, month, year, er, min, max, location, destination, roaming, phoneNumberCheck.ToString(), dateTimeCheck.ToString(), erCheck.ToString(), totalCostCheck.ToString(), locationCheck.ToString(), destinationCheck.ToString(), roamingCheck.ToString() }); string csv = HttpContext.Session.GetString(httpSessionName); stw.Write(csv); stw.Dispose(); return(RedirectToAction(nameof(Index), new { phoneNumber = phoneNumber, day = day, month = month, year = year, er = er, min = min, max = max, location = location, destination = destination, roaming = roaming, phoneNumberCheck = phoneNumberCheck == "True" ? "True" : null, dateTimeCheck = dateTimeCheck == "True" ? "True" : null, erCheck = erCheck == "True" ? "True" : null, totalCostCheck = totalCostCheck == "True" ? "True" : null, locationCheck = locationCheck == "True" ? "True" : null, destinationCheck = destinationCheck == "True" ? "True" : null, roamingCheck = roamingCheck == "True" ? "True" : null, cpage = page })); }
public async Task <object> SearchData(SearchData searchData) { var call_chuck = await SD.GetStringAsync(SD.baseUrlChuck + "categories/" + searchData.q_category); var call_swapi = await SD.GetStringAsync(SD.baseUrlChuck + "people/" + searchData.q_people); var people = JsonConvert.DeserializeObject <object>(call_swapi); var categories = JsonConvert.DeserializeObject <object>(call_chuck); var results = new { Chuck = call_chuck, Swapi = call_swapi }; var chuck_swapi = JsonConvert.SerializeObject(results); return(chuck_swapi); }
public async Task <IActionResult> Summary() { DetailCart = new OrderDetailsCart() { OrderHeader = new OrderHeader() }; DetailCart.OrderHeader.OrderTotal = 0; var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); ApplicationUser applicationUser = await _db.ApplicationUser.Where(u => u.Id == claim.Value).FirstOrDefaultAsync(); var cart = _db.ShoppingCart.Where(c => c.ApplicationUserId == claim.Value).ToList(); DetailCart.CartList = cart.Any() ? cart.ToList() : new List <ShoppingCart>(); foreach (var cartItem in DetailCart.CartList) { cartItem.MenuItem = await _db.MenuItem.FirstOrDefaultAsync(m => m.Id == cartItem.MenuItemId); DetailCart.OrderHeader.OrderTotal = DetailCart.OrderHeader.OrderTotal + (cartItem.MenuItem.Price * cartItem.Count); } DetailCart.OrderHeader.OrderTotalOriginal = DetailCart.OrderHeader.OrderTotal; DetailCart.OrderHeader.PickupName = applicationUser.Name; DetailCart.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; DetailCart.OrderHeader.PickUpTime = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { DetailCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromDb = await _db.Coupon .Where(c => c.Name.ToLower() == DetailCart.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); DetailCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, DetailCart.OrderHeader.OrderTotalOriginal); } return(View(DetailCart)); }
public async Task <IActionResult> Summary() { detailCart = new OrderDetailsCart() { OrderHeader = new Models.OrderHeader() }; detailCart.OrderHeader.OrderTotal = 0; var claimIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimIdentity.FindFirst(ClaimTypes.NameIdentifier); var applicationUser = await _db.ApplicationUser.FirstOrDefaultAsync(u => u.Id == claim.Value); var cart = _db.ShoppingCart.Where(c => c.ApplicationUserId == claim.Value); if (cart != null) { detailCart.listCart = cart.ToList(); } foreach (var list in detailCart.listCart) { list.MenuItem = await _db.MenuItem.FirstOrDefaultAsync(m => m.Id == list.MenuItemId); detailCart.OrderHeader.OrderTotal = detailCart.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); } detailCart.OrderHeader.OrderTotalOriginal = detailCart.OrderHeader.OrderTotal; detailCart.OrderHeader.PickupName = applicationUser.Name; detailCart.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; detailCart.OrderHeader.PickupTime = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { detailCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponDB = await _db.Coupon.Where(c => c.Name.ToLower() == detailCart.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); detailCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponDB, detailCart.OrderHeader.OrderTotalOriginal); } return(View(detailCart)); }
public void Clicked() { Variables.WhiteDraw = false; Variables.BlackDraw = false; //spawn dialogue window // jezeli obie strony wyraza zgode skrypt zespawnuje draw button GameObject[] CheckerList = GameObject.FindGameObjectsWithTag("ButtonTag"); // w taki sposob się dostaje do obiektów foreach (GameObject Checker in CheckerList) { Checker.GetComponent <Button>().enabled = false; } GameObject[] SDList = GameObject.FindGameObjectsWithTag("SurrDraw"); // w taki sposob się dostaje do obiektów foreach (GameObject SD in SDList) { SD.GetComponent <Button>().enabled = false; } temp2 = (Image)Instantiate(PopupDraw, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity); temp2.transform.SetParent(GameCanvas.transform, false); }
public async Task <IActionResult> Index() { detailCart = new OrderDetailsCart() { OrderHeader = new Models.OrderHeader() }; detailCart.OrderHeader.OrderTotal = 0; var claimIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimIdentity.FindFirst(ClaimTypes.NameIdentifier); var cart = _db.ShoppingCart.Where(c => c.ApplicationUserId == claim.Value); if (cart != null) { detailCart.listCart = cart.ToList(); } foreach (var list in detailCart.listCart) { list.MenuItem = await _db.MenuItem.FirstOrDefaultAsync(m => m.Id == list.MenuItemId); detailCart.OrderHeader.OrderTotal = detailCart.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); list.MenuItem.Description = SD.ConvertToRawHtml(list.MenuItem.Description); if (list.MenuItem.Description.Length > 100) { list.MenuItem.Description = list.MenuItem.Description.Substring(0, 99) + "..."; } } detailCart.OrderHeader.OrderTotalOriginal = detailCart.OrderHeader.OrderTotal; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { detailCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponDB = await _db.Coupon.Where(c => c.Name.ToLower() == detailCart.OrderHeader.CouponCode.ToLower()).FirstOrDefaultAsync(); detailCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponDB, detailCart.OrderHeader.OrderTotalOriginal); } return(View(detailCart)); }
public IActionResult minus(int cartId) { var cart = _unitofWork.ShoppingCart.GetFirstOrDefault(c => c.Id == cartId, includeProperties: "Product"); if (cart.Count == 1) { var count = _unitofWork.ShoppingCart.GetAll(u => u.ApplicationUserId == cart.ApplicationUserId).ToList().Count(); _unitofWork.ShoppingCart.Remove(cart); _unitofWork.Save(); HttpContext.Session.SetInt32(SD.ssShopingCart, count - 1); } else { cart.Count -= 1; cart.Price = SD.GetPriceBasedOnQuantity(cart.Count, cart.Product.Price, cart.Product.Price50, cart.Product.Price100); _unitofWork.Save(); } return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> Minus(int cartId) { var cart = _unitOfWork.ShoppingCart.GetFirstOrDefault(x => x.Id == cartId, includeProperties: "Product"); if (cart.Count == 1) { _unitOfWork.ShoppingCart.Remove(cart); var cnt = _unitOfWork.ShoppingCart.GetAll(x => x.ApplicationUserId == cart.ApplicationUserId).ToList().Count; _unitOfWork.SaveChanges(); HttpContext.Session.SetInt32(SD.SShoppingCart, cnt - 1); } else { cart.Count -= 1; cart.Price = SD.GetPriceBasedOnQuantity(cart.Count, cart.Product.Price, cart.Product.Price50, cart.Product.Price100); _unitOfWork.SaveChanges(); } return(RedirectToAction(nameof(Index))); }
public IActionResult Summary() { detailsCart = new OrderDetailsCart() { OrderHeader = new OrderHeader() }; detailsCart.OrderHeader.OrderTotal = 0; var claimsIdentity = (ClaimsIdentity)User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); ApplicationUser applicationUser = _unitOfWork.ApplicationUser.GetFirstOrDefault(c => c.Id == claim.Value); var cart = _unitOfWork.ShoppingCart.GetAll(c => c.ApplicationUserId == claim.Value); if (cart != null) { detailsCart.listCart = cart.ToList(); } foreach (var list in detailsCart.listCart) { list.Service = _unitOfWork.Service.GetFirstOrDefault(s => s.Id == list.ServiceId); detailsCart.OrderHeader.OrderTotal = detailsCart.OrderHeader.OrderTotal + (list.Service.Price * list.Count); } detailsCart.OrderHeader.OrderTotalOriginal = detailsCart.OrderHeader.OrderTotal; detailsCart.OrderHeader.PickupName = applicationUser.Name; detailsCart.OrderHeader.PhoneNumber = applicationUser.PhoneNumber; detailsCart.OrderHeader.Email = applicationUser.Email; detailsCart.OrderHeader.Comments = applicationUser.StreetAddress; detailsCart.OrderHeader.PickUpTime = DateTime.Now; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { detailsCart.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var couponFromDb = _unitOfWork.Coupon.GetFirstOrDefault(c => c.Name.ToLower() == detailsCart.OrderHeader.CouponCode.ToLower()); detailsCart.OrderHeader.OrderTotal = SD.DiscountedPrice(couponFromDb, detailsCart.OrderHeader.OrderTotalOriginal); } return(View(detailsCart)); }
// GET: CostCenters public async Task <IActionResult> Index(int cpage, string code, string name, string managementName, string codeCheck, string nameCheck, string managementNameCheck, string page, string next, string previous) { //int _managementId = Parse.IntTryParse(managementId); // Tuple <bool, string>[] show = SD.Show(new List <string>() { codeCheck, nameCheck, managementNameCheck }, new List <string>() { code, name, managementName }); ViewData["columns"] = show; // IEnumerable <CostCenter> costCenters = await _context.CostCenters.Include(a => a.Management).ToListAsync(); List <CostCenter> _costCenter = costCenters.ToList(); List <CostCenter> final_result = new List <CostCenter>(); var codeList = (code != null) ? code.Split(", ").ToList() : new List <string>(); _costCenter = DataFilter <CostCenter> .Filter(codeList, (m) => m.Code, _costCenter).ToList(); var nameList = (name != null) ? name.Split(", ").ToList() : new List <string>(); _costCenter = DataFilter <CostCenter> .Filter(nameList, (m) => m.Name, _costCenter, true).ToList(); var managementNameList = (managementName != null) ? managementName.Split(", ").ToList() : new List <string>(); _costCenter = DataFilter <CostCenter> .Filter(managementNameList, (m) => m.Management.Name, _costCenter, true).ToList(); //Separar en paginas _costCenter = _costCenter.OrderBy(m => m.Code).ToList(); var result = Paging <CostCenter> .Pages(_costCenter, page, cpage, (next != null), (previous != null)); ViewData["top"] = result.Item2; ViewData["mult"] = result.Item3; ViewData["page"] = result.Item4; return(View(result.Item1)); }
public string CSVStringConstructor(Tuple <bool, string>[] show, bool[] mask, List <Employee> data) { List <string> headers = new List <string>(); int t = 0; for (int j = 0; j < show.Length; j++) { if (mask[j]) { headers.Add(SD.employee[j]); } } List <List <string> > datas = new List <List <string> >(); foreach (var item in data) { List <string> row = new List <string>(); if (show[0].Item1) { row.Add(item.Name); } if (show[3].Item1) { row.Add(item.Email); } if (show[1].Item1) { row.Add(item.CostCenter.ToString()); } if (show[4].Item1) { row.Add(item.Extension); } datas.Add(row); } string csv = SD.csvString(headers, datas); return(csv); }
// GET: CallingPlans public async Task <IActionResult> Index(int cpage, string callingPlanId, string minutes, string minCost, string maxCost, string cPCheck, string minutesCheck, string costCheck, string page, string next, string previous) { // var _callingPlanId = Utils.Utils.IntTryParse(callingPlanId); var _minutes = Parse.IntTryParse(minutes); var _minCost = Parse.FloatTryParse(minCost); var _maxCost = Parse.FloatTryParse(maxCost); // para setear propiedades en la vista Tuple <bool, string>[] show = SD.Show(new List <string>() { cPCheck, minutesCheck, costCheck, costCheck }, new List <string>() { callingPlanId, minutes, minCost, maxCost }); ViewData["columns"] = show; // IEnumerable <CallingPlan> callingPlans = await _context.CallingPlans.ToListAsync(); List <CallingPlan> _callingPlans = callingPlans.ToList(); List <CallingPlan> final_result = new List <CallingPlan>(); var callingPlanIdList = (callingPlanId != null) ? callingPlanId.Split(", ").ToList() : new List <string>(); _callingPlans = DataFilter <CallingPlan> .Filter(callingPlanIdList, (m) => m.CallingPlanId, _callingPlans, true).ToList(); _callingPlans = DataFilter <CallingPlan> .Filter(_minutes, (m) => m.Minutes, _callingPlans).ToList(); _callingPlans = DataFilter <CallingPlan> .Filter(_minCost, _maxCost, (m) => m.Cost, _callingPlans).ToList(); //Separar en paginas _callingPlans = _callingPlans.OrderBy(m => m.CallingPlanId).ToList(); var result = Paging <CallingPlan> .Pages(_callingPlans, page, cpage, (next != null), (previous != null)); ViewData["top"] = result.Item2; ViewData["mult"] = result.Item3; ViewData["page"] = result.Item4; return(View(result.Item1)); }
public IActionResult Summary() { var claimsIdentity = (ClaimsIdentity)User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); ShoppingCartVM = new ShoppingCartVM() { OrderHeader = new Models.OrderHeader(), ListCart = _unitOfWork.ShoppingCart.GetAll(c => c.ApplicationUserId == claim.Value, includeProperties: "Product") }; ShoppingCartVM.OrderHeader.ApplicationUser = _unitOfWork.ApplicationUser .GetFirstOrDefault(c => c.Id == claim.Value, includeProperties: "Company"); foreach (var list in ShoppingCartVM.ListCart) { list.Price = SD.GetPriceBasedOnQuantity(list.Count, list.Product.Price, list.Product.Price50, list.Product.Price100); ShoppingCartVM.OrderHeader.OrderTotal += (list.Price * list.Count); } if (ShoppingCartVM.OrderHeader.OrderTotal < 500) { ShoppingCartVM.OrderHeader.OrderTotal = ShoppingCartVM.OrderHeader.OrderTotal + 50; } else { ShoppingCartVM.OrderHeader.OrderTotal = ShoppingCartVM.OrderHeader.OrderTotal; } ShoppingCartVM.OrderHeader.Name = ShoppingCartVM.OrderHeader.ApplicationUser.Name; ShoppingCartVM.OrderHeader.PhoneNumber = ShoppingCartVM.OrderHeader.ApplicationUser.PhoneNumber; ShoppingCartVM.OrderHeader.StreetAddress = ShoppingCartVM.OrderHeader.ApplicationUser.StreetAddress; ShoppingCartVM.OrderHeader.City = ShoppingCartVM.OrderHeader.ApplicationUser.City; ShoppingCartVM.OrderHeader.State = ShoppingCartVM.OrderHeader.ApplicationUser.State; ShoppingCartVM.OrderHeader.PostalCode = ShoppingCartVM.OrderHeader.ApplicationUser.PostalCode; return(View(ShoppingCartVM)); }
public string CSVStringConstructor(Tuple <bool, string>[] show, bool[] mask, List <CallingPlanAssignment> data) { List <string> headers = new List <string>(); int t = 0; for (int j = 0; j < mask.Length; j++) { if (mask[j]) { headers.Add(SD.callingPlanAssignment[j]); } } List <List <string> > datas = new List <List <string> >(); foreach (var item in data) { List <string> row = new List <string>(); if (show[0].Item1) { row.Add(item.PhoneNumber); } if (show[1].Item1) { row.Add(SD.Months[item.Month]); } if (show[2].Item1) { row.Add(item.Year.ToString()); } if (show[3].Item1) { row.Add(item.CallingPlanId); } datas.Add(row); } string csv = SD.csvString(headers, datas); return(csv); }
public async Task <IActionResult> Summary() { detailcard = new OrderDetails_ViewModel() { OrderHeaders = new OrderHeaders(), }; detailcard.OrderHeaders.ordertotal = 0; var clamidentity = (ClaimsIdentity)User.Identity; var claim = clamidentity.FindFirst(ClaimTypes.NameIdentifier); ApplicationUser applicationuser = await db.ApplicationUser.FirstOrDefaultAsync(x => x.Id == claim.Value); var cart = db.shopingCarts.Where(x => x.applicationuserid == claim.Value); if (cart != null) { detailcard.Listcart = await cart.ToListAsync(); } foreach (var list in detailcard.Listcart) { list.Menuitem = await db.Menuitem.FirstOrDefaultAsync(m => m.id == list.menuitemid); detailcard.OrderHeaders.ordertotal = detailcard.OrderHeaders.ordertotal + (list.Menuitem.Price * list.count); } detailcard.OrderHeaders.OrdartotalOriginal = detailcard.OrderHeaders.ordertotal; detailcard.OrderHeaders.Picupname = applicationuser.Name; detailcard.OrderHeaders.Picktime = DateTime.Now; detailcard.OrderHeaders.Phonenumber = applicationuser.PhoneNumber; detailcard.OrderHeaders.copunslist = await db.Copuns.ToListAsync(); if (HttpContext.Session.GetInt32(SD.sscouponcode) != null && HttpContext.Session.GetInt32(SD.sscouponcode) != 0) { Copuns cop = await db.Copuns.FirstOrDefaultAsync(x => x.id == HttpContext.Session.GetInt32(SD.sscouponcode)); detailcard.OrderHeaders.ordertotal = SD.discount(cop, detailcard.OrderHeaders.OrdartotalOriginal); detailcard.OrderHeaders.CouponCode = cop.Name; } if (HttpContext.Session.GetInt32(SD.sscouponcode) == 0) { detailcard.OrderHeaders.ordertotal = detailcard.OrderHeaders.OrdartotalOriginal; } return(View(detailcard)); }
public IActionResult Index() { // get currently logged in user var claimsIdentity = (ClaimsIdentity)User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier); // init new shopping card viewmodel // creating a new order header and populating ListCart with the users shopping cart from the db ShoppingCartVM = new ShoppingCartVM() { OrderHeader = new Models.OrderHeader(), ListCart = _unitOfWork.ShoppingCart .GetAll(u => u.ApplicationUserId == claim.Value, includeProperties: "Product") }; // initial value of properties ShoppingCartVM.OrderHeader.OrderTotal = 0; ShoppingCartVM.OrderHeader.ApplicationUser = _unitOfWork.ApplicationUser .GetFirstOrDefault(u => u.Id == claim.Value, includeProperties: "Company"); // iterate through all of the items inside the ListCart to calculate price foreach (var list in ShoppingCartVM.ListCart) { // get price of the product based on the quantity list.Price = SD.GetPriceBasedOnQuantity(list.Count, list.Product.Price, list.Product.Price50, list.Product.Price100); // set the order total to the recieved price and quantity ShoppingCartVM.OrderHeader.OrderTotal += (list.Price * list.Count); // convert description to Html list.Product.Description = SD.ConvertToRawHtml(list.Product.Description); // we only want to show 100 characters of the description if (list.Product.Description.Length > 100) { list.Product.Description = list.Product.Description.Substring(0, 99) + "..."; } } return(View(ShoppingCartVM)); }
public string CSVStringConstructor(Tuple <bool, string>[] show, bool[] mask, List <PhoneLine> data) { List <string> headers = new List <string>(); int t = 0; for (int j = 0; j < mask.Length; j++) { if (mask[j]) { headers.Add(SD.phoneLine[j]); } } List <List <string> > datas = new List <List <string> >(); foreach (var item in data) { List <string> row = new List <string>(); if (show[0].Item1) { row.Add(item.PhoneNumber); } if (show[1].Item1) { row.Add(item.PUK.ToString()); } if (show[2].Item1) { row.Add(item.PIN.ToString()); } if (show[3].Item1) { row.Add(item.Contract); } datas.Add(row); } string csv = SD.csvString(headers, datas); return(csv); }
public async Task <IActionResult> Index() { DetailsCartVM = new OrderDetailsCartViewModel() { OrderHeader = new Models.OrderHeader() }; DetailsCartVM.OrderHeader.OrderTotal = 0; var claimsIdentity = (ClaimsIdentity)this.User.Identity; var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier).Value; var cartList = await _db.ShoppingCart.Where(u => u.ApplicationUserId == claim).ToListAsync(); if (claim != null) { DetailsCartVM.ShoppingCartList = cartList; } foreach (var list in cartList) { list.MenuItem = await _db.MenuItems.FirstOrDefaultAsync(u => u.MenuItemId == list.MenuItemId); DetailsCartVM.OrderHeader.OrderTotal = DetailsCartVM.OrderHeader.OrderTotal + (list.MenuItem.Price * list.Count); list.MenuItem.Description = SD.ConvertToRawHtml(list.MenuItem.Description); if (list.MenuItem.Description.Length > 60) { list.MenuItem.Description = list.MenuItem.Description.Substring(0, 59) + "...."; } } DetailsCartVM.OrderHeader.OrderTotalOriginal = DetailsCartVM.OrderHeader.OrderTotal; if (HttpContext.Session.GetString(SD.ssCouponCode) != null) { DetailsCartVM.OrderHeader.CouponCode = HttpContext.Session.GetString(SD.ssCouponCode); var coupon = _db.Coupons.FirstOrDefault(u => u.CouponName.ToLower() == DetailsCartVM.OrderHeader.CouponCode.ToLower()); DetailsCartVM.OrderHeader.OrderTotal = SD.DiscountedPrice(coupon, DetailsCartVM.OrderHeader.OrderTotalOriginal); } return(View(DetailsCartVM)); }
public void SetUpFixture() { SD.InitializeForUnitTests(); WixProject p = WixBindingTestsHelper.CreateEmptyWixProject(); p.Name = "MySetup"; FileProjectItem item = new FileProjectItem(p, ItemType.Compile); item.Include = "Setup.wxs"; ProjectService.AddProjectItem(p, item); item = new FileProjectItem(p, ItemType.Compile); item.Include = "Files.wxs"; ProjectService.AddProjectItem(p, item); view = new MockWixPackageFilesView(); WixPackageFilesEditor editor = new WixPackageFilesEditor(view, this, this); editor.ShowFiles(p); }
public void Init() { SD.InitializeForUnitTests(); viewWithOpenWixDocument = new MockTextEditorViewContent(); viewWithOpenWixDocument.SetFileName(@"d:\projects\test\a.wxs"); workbench = new MockWorkbench(); workbench.ViewContentCollection.Add(viewWithOpenWixDocument); document = new WixDocument(); document.FileName = @"d:\projects\test\a.wxs"; packageFilesControl = new MockWixPackageFilesControl(); packageFilesControl.Document = document; project = WixBindingTestsHelper.CreateEmptyWixProject(); packageFilesView = new PackageFilesView(project, workbench, packageFilesControl); AfterInit(); }
public IActionResult Upsert(Forum forum) { if (ModelState.IsValid) { if (forum.Id == 0) { forum.ApplicationUserId = SD.getCurrentUserId(User); _unitOfWork.Forum.Add(forum); TempData["Success"] = "Forum created successfully."; } else { _unitOfWork.Forum.Update(forum); TempData["Success"] = "Forum updated successfully."; } _unitOfWork.Save(); return(RedirectToAction(nameof(Index))); } return(View(forum)); }
/// <summary> /// Handles the PerformSelect event of the _supportQueueDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs"/> instance containing the event data.</param> protected void _supportQueueDS_PerformSelect(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs e) { _supportQueueDS.EntityCollection = SupportQueueGuiHelper.GetAllSupportQueues(); }
/// <summary>Creates a new, empty Entity object of the type specified</summary> /// <param name="entityTypeToCreate">The entity type to create.</param> /// <returns>A new, empty Entity object.</returns> public static IEntity Create(SD.HnD.DAL.EntityType entityTypeToCreate) { IEntityFactory factoryToUse = null; switch(entityTypeToCreate) { case SD.HnD.DAL.EntityType.ActionRightEntity: factoryToUse = new ActionRightEntityFactory(); break; case SD.HnD.DAL.EntityType.AttachmentEntity: factoryToUse = new AttachmentEntityFactory(); break; case SD.HnD.DAL.EntityType.AuditActionEntity: factoryToUse = new AuditActionEntityFactory(); break; case SD.HnD.DAL.EntityType.AuditDataCoreEntity: factoryToUse = new AuditDataCoreEntityFactory(); break; case SD.HnD.DAL.EntityType.AuditDataMessageRelatedEntity: factoryToUse = new AuditDataMessageRelatedEntityFactory(); break; case SD.HnD.DAL.EntityType.AuditDataThreadRelatedEntity: factoryToUse = new AuditDataThreadRelatedEntityFactory(); break; case SD.HnD.DAL.EntityType.BookmarkEntity: factoryToUse = new BookmarkEntityFactory(); break; case SD.HnD.DAL.EntityType.ForumEntity: factoryToUse = new ForumEntityFactory(); break; case SD.HnD.DAL.EntityType.ForumRoleForumActionRightEntity: factoryToUse = new ForumRoleForumActionRightEntityFactory(); break; case SD.HnD.DAL.EntityType.IPBanEntity: factoryToUse = new IPBanEntityFactory(); break; case SD.HnD.DAL.EntityType.MessageEntity: factoryToUse = new MessageEntityFactory(); break; case SD.HnD.DAL.EntityType.RoleEntity: factoryToUse = new RoleEntityFactory(); break; case SD.HnD.DAL.EntityType.RoleAuditActionEntity: factoryToUse = new RoleAuditActionEntityFactory(); break; case SD.HnD.DAL.EntityType.RoleSystemActionRightEntity: factoryToUse = new RoleSystemActionRightEntityFactory(); break; case SD.HnD.DAL.EntityType.RoleUserEntity: factoryToUse = new RoleUserEntityFactory(); break; case SD.HnD.DAL.EntityType.SectionEntity: factoryToUse = new SectionEntityFactory(); break; case SD.HnD.DAL.EntityType.SupportQueueEntity: factoryToUse = new SupportQueueEntityFactory(); break; case SD.HnD.DAL.EntityType.SupportQueueThreadEntity: factoryToUse = new SupportQueueThreadEntityFactory(); break; case SD.HnD.DAL.EntityType.SystemDataEntity: factoryToUse = new SystemDataEntityFactory(); break; case SD.HnD.DAL.EntityType.ThreadEntity: factoryToUse = new ThreadEntityFactory(); break; case SD.HnD.DAL.EntityType.ThreadSubscriptionEntity: factoryToUse = new ThreadSubscriptionEntityFactory(); break; case SD.HnD.DAL.EntityType.UserEntity: factoryToUse = new UserEntityFactory(); break; case SD.HnD.DAL.EntityType.UserTitleEntity: factoryToUse = new UserTitleEntityFactory(); break; } IEntity toReturn = null; if(factoryToUse != null) { toReturn = factoryToUse.Create(); } return toReturn; }
public override SD[] opAStructSD(SD[] i, out SD[] o, Ice.Current current) { o = i; return i; }
/// <summary> /// Handles the PerformWork event of the _supportQueueDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs"/> instance containing the event data.</param> protected void _supportQueueDS_PerformWork(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs e) { SupportQueueManager.PersistSupportQueueUnitOfWork(e.Uow); // invalidate cache CacheManager.InvalidateCachedItem(CacheKeys.AllSupportQueues); }
private List<Pair> TransformKVSPairs(SD.Pair[] pairs) { List<Pair> retPairs = new List<Pair>(pairs.Count()); Pair pair; foreach(SD.Pair p in pairs) { pair = new Pair(); pair.Key = p.Key; pair.Value = p.Value; retPairs.Add(pair); } return retPairs; }
/// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary> /// <param name="relatedEntityType">The type of entity the fields are for</param> /// <returns>The IEntityFields instance requested</returns> public static IEntityFields CreateEntityFieldsObject(SD.HnD.DAL.EntityType relatedEntityType) { return FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType]); }
internal static void twoways(Ice.Communicator communicator, Test.MyClassPrx p) { { byte[] i = new byte[_length]; for(int c = 0; c < _length; ++c) { i[c] = (byte)c; } byte[] o; byte[] r; r = p.opAByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<byte> i = new List<byte>(_length); for(int c = 0; c < _length; ++c) { i.Add((byte)c); } List<byte> o; List<byte> r; r = p.opLByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<byte> i = new LinkedList<byte>(); for(int c = 0; c < _length; ++c) { i.AddLast((byte)c); } LinkedList<byte> o; LinkedList<byte> r; r = p.opKByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<byte> i = new Queue<byte>(); for(int c = 0; c < _length; ++c) { i.Enqueue((byte)c); } Queue<byte> o; Queue<byte> r; r = p.opQByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<byte> i = new Stack<byte>(); for(int c = 0; c < _length; ++c) { i.Push((byte)c); } Stack<byte> o; Stack<byte> r; r = p.opSByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CByteS i = new CByteS(_length); for(int c = 0; c < _length; ++c) { i.Add((byte)c); } CByteS o; CByteS r; r = p.opCByteS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { bool[] i = new bool[_length]; for(int c = 0; c < _length; ++c) { i[c] = c % 1 == 1; } bool[] o; bool[] r; r = p.opABoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<bool> i = new List<bool>(_length); for(int c = 0; c < _length; ++c) { i.Add(c % 1 == 1); } List<bool> o; List<bool> r; r = p.opLBoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<bool> i = new LinkedList<bool>(); for(int c = 0; c < _length; ++c) { i.AddLast(c % 1 == 1); } LinkedList<bool> o; LinkedList<bool> r; r = p.opKBoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<bool> i = new Queue<bool>(); for(int c = 0; c < _length; ++c) { i.Enqueue(c % 1 == 1); } Queue<bool> o; Queue<bool> r; r = p.opQBoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<bool> i = new Stack<bool>(); for(int c = 0; c < _length; ++c) { i.Push(c % 1 == 1); } Stack<bool> o; Stack<bool> r; r = p.opSBoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CBoolS i = new CBoolS(_length); for(int c = 0; c < _length; ++c) { i.Add(c % 1 == 1); } CBoolS o; CBoolS r; r = p.opCBoolS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { short[] i = new short[_length]; for(int c = 0; c < _length; ++c) { i[c] = (short)c; } short[] o; short[] r; { r = p.opAShortS(i, out o); } test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<short> i = new List<short>(_length); for(int c = 0; c < _length; ++c) { i.Add((short)c); } List<short> o; List<short> r; r = p.opLShortS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<short> i = new LinkedList<short>(); for(int c = 0; c < _length; ++c) { i.AddLast((short)c); } LinkedList<short> o; LinkedList<short> r; r = p.opKShortS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<short> i = new Queue<short>(); for(int c = 0; c < _length; ++c) { i.Enqueue((short)c); } Queue<short> o; Queue<short> r; r = p.opQShortS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<short> i = new Stack<short>(); for(int c = 0; c < _length; ++c) { i.Push((short)c); } Stack<short> o; Stack<short> r; r = p.opSShortS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CShortS i = new CShortS(_length); for(int c = 0; c < _length; ++c) { i.Add((short)c); } CShortS o; CShortS r; r = p.opCShortS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { int[] i = new int[_length]; for(int c = 0; c < _length; ++c) { i[c] = (int)c; } int[] o; int[] r; r = p.opAIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<int> i = new List<int>(_length); for(int c = 0; c < _length; ++c) { i.Add((int)c); } List<int> o; List<int> r; r = p.opLIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<int> i = new LinkedList<int>(); for(int c = 0; c < _length; ++c) { i.AddLast((int)c); } LinkedList<int> o; LinkedList<int> r; r = p.opKIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<int> i = new Queue<int>(); for(int c = 0; c < _length; ++c) { i.Enqueue((int)c); } Queue<int> o; Queue<int> r; r = p.opQIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<int> i = new Stack<int>(); for(int c = 0; c < _length; ++c) { i.Push((int)c); } Stack<int> o; Stack<int> r; r = p.opSIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CIntS i = new CIntS(_length); for(int c = 0; c < _length; ++c) { i.Add((int)c); } CIntS o; CIntS r; r = p.opCIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { long[] i = new long[_length]; for(int c = 0; c < _length; ++c) { i[c] = (long)c; } long[] o; long[] r; r = p.opALongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<long> i = new List<long>(_length); for(int c = 0; c < _length; ++c) { i.Add((long)c); } List<long> o; List<long> r; r = p.opLLongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<long> i = new LinkedList<long>(); for(int c = 0; c < _length; ++c) { i.AddLast((long)c); } LinkedList<long> o; LinkedList<long> r; r = p.opKLongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<long> i = new Queue<long>(); for(int c = 0; c < _length; ++c) { i.Enqueue((long)c); } Queue<long> o; Queue<long> r; r = p.opQLongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<long> i = new Stack<long>(); for(int c = 0; c < _length; ++c) { i.Push((long)c); } Stack<long> o; Stack<long> r; r = p.opSLongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CLongS i = new CLongS(_length); for(int c = 0; c < _length; ++c) { i.Add((long)c); } CLongS o; CLongS r; r = p.opCLongS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { float[] i = new float[_length]; for(int c = 0; c < _length; ++c) { i[c] = (float)c; } float[] o; float[] r; r = p.opAFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<float> i = new List<float>(_length); for(int c = 0; c < _length; ++c) { i.Add((float)c); } List<float> o; List<float> r; r = p.opLFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<float> i = new LinkedList<float>(); for(int c = 0; c < _length; ++c) { i.AddLast((float)c); } LinkedList<float> o; LinkedList<float> r; r = p.opKFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<float> i = new Queue<float>(); for(int c = 0; c < _length; ++c) { i.Enqueue((float)c); } Queue<float> o; Queue<float> r; r = p.opQFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<float> i = new Stack<float>(); for(int c = 0; c < _length; ++c) { i.Push((float)c); } Stack<float> o; Stack<float> r; r = p.opSFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CFloatS i = new CFloatS(_length); for(int c = 0; c < _length; ++c) { i.Add((float)c); } CFloatS o; CFloatS r; r = p.opCFloatS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { double[] i = new double[_length]; for(int c = 0; c < _length; ++c) { i[c] = (double)c; } double[] o; double[] r; r = p.opADoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<double> i = new List<double>(_length); for(int c = 0; c < _length; ++c) { i.Add((double)c); } List<double> o; List<double> r; r = p.opLDoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<double> i = new LinkedList<double>(); for(int c = 0; c < _length; ++c) { i.AddLast((double)c); } LinkedList<double> o; LinkedList<double> r; r = p.opKDoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<double> i = new Queue<double>(); for(int c = 0; c < _length; ++c) { i.Enqueue((double)c); } Queue<double> o; Queue<double> r; r = p.opQDoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<double> i = new Stack<double>(); for(int c = 0; c < _length; ++c) { i.Push((double)c); } Stack<double> o; Stack<double> r; r = p.opSDoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CDoubleS i = new CDoubleS(_length); for(int c = 0; c < _length; ++c) { i.Add((double)c); } CDoubleS o; CDoubleS r; r = p.opCDoubleS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { string[] i = new string[_length]; for(int c = 0; c < _length; ++c) { i[c] = c.ToString(); } string[] o; string[] r; r = p.opAStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<string> i = new List<string>(_length); for(int c = 0; c < _length; ++c) { i.Add(c.ToString()); } List<string> o; List<string> r; r = p.opLStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<string> i = new LinkedList<string>(); for(int c = 0; c < _length; ++c) { i.AddLast(c.ToString()); } LinkedList<string> o; LinkedList<string> r; r = p.opKStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<string> i = new Queue<string>(); for(int c = 0; c < _length; ++c) { i.Enqueue(c.ToString()); } Queue<string> o; Queue<string> r; r = p.opQStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<string> i = new Stack<string>(); for(int c = 0; c < _length; ++c) { i.Push(c.ToString()); } Stack<string> o; Stack<string> r; r = p.opSStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CStringS i = new CStringS(_length); for(int c = 0; c < _length; ++c) { i.Add(c.ToString()); } CStringS o; CStringS r; r = p.opCStringS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Ice.Object[] i = new CV[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CV(c); } Ice.Object[] o; Ice.Object[] r; r = p.opAObjectS(i, out o); System.Collections.IEnumerator eo = o.GetEnumerator(); System.Collections.IEnumerator er = r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == ((CV)eo.Current).i); test(obj.i == ((CV)er.Current).i); } } { List<Ice.Object> i = new List<Ice.Object>(_length); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } List<Ice.Object> o; List<Ice.Object> r; r = p.opLObjectS(i, out o); IEnumerator<Ice.Object> eo = o.GetEnumerator(); IEnumerator<Ice.Object> er = r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == ((CV)eo.Current).i); test(obj.i == ((CV)er.Current).i); } } { CObjectS i = new CObjectS(_length); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } CObjectS o; CObjectS r; r = p.opCObjectS(i, out o); IEnumerator<Ice.Object> eo = (IEnumerator<Ice.Object>)o.GetEnumerator(); IEnumerator<Ice.Object> er = (IEnumerator<Ice.Object>)r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == ((CV)eo.Current).i); test(obj.i == ((CV)er.Current).i); } } { Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length]; for(int c = 0; c < _length; ++c) { i[c] = communicator.stringToProxy(c.ToString()); } Ice.ObjectPrx[] o; Ice.ObjectPrx[] r; r = p.opAObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<Ice.ObjectPrx> i = new List<Ice.ObjectPrx>(_length); for(int c = 0; c < _length; ++c) { i.Add(communicator.stringToProxy(c.ToString())); } List<Ice.ObjectPrx> o; List<Ice.ObjectPrx> r; r = p.opLObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<Ice.ObjectPrx> i = new LinkedList<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.AddLast(communicator.stringToProxy(c.ToString())); } LinkedList<Ice.ObjectPrx> o; LinkedList<Ice.ObjectPrx> r; r = p.opKObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<Ice.ObjectPrx> i = new Queue<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.Enqueue(communicator.stringToProxy(c.ToString())); } Queue<Ice.ObjectPrx> o; Queue<Ice.ObjectPrx> r; r = p.opQObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<Ice.ObjectPrx> i = new Stack<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.Push(communicator.stringToProxy(c.ToString())); } Stack<Ice.ObjectPrx> o; Stack<Ice.ObjectPrx> r; r = p.opSObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CObjectPrxS i = new CObjectPrxS(_length); for(int c = 0; c < _length; ++c) { i.Add(communicator.stringToProxy(c.ToString())); } CObjectPrxS o; CObjectPrxS r; r = p.opCObjectPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { S[] i = new S[_length]; for(int c = 0; c < _length; ++c) { i[c].i = c; } S[] o; S[] r; r = p.opAStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<S> i = new List<S>(_length); for(int c = 0; c < _length; ++c) { i.Add(new S(c)); } List<S> o; List<S> r; r = p.opLStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<S> i = new LinkedList<S>(); for(int c = 0; c < _length; ++c) { i.AddLast(new S(c)); } LinkedList<S> o; LinkedList<S> r; r = p.opKStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<S> i = new Queue<S>(); for(int c = 0; c < _length; ++c) { i.Enqueue(new S(c)); } Queue<S> o; Queue<S> r; r = p.opQStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<S> i = new Stack<S>(); for(int c = 0; c < _length; ++c) { i.Push(new S(c)); } Stack<S> o; Stack<S> r; r = p.opSStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CStructS i = new CStructS(_length); for(int c = 0; c < _length; ++c) { i.Add(new S(c)); } CStructS o; CStructS r; r = p.opCStructS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { SD[] i = new SD[_length]; for(int c = 0; c < _length; ++c) { i[c] = new SD(c); } SD[] o; SD[] r; r = p.opAStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<SD> i = new List<SD>(_length); for(int c = 0; c < _length; ++c) { i.Add(new SD(c)); } List<SD> o; List<SD> r; r = p.opLStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<SD> i = new LinkedList<SD>(); for(int c = 0; c < _length; ++c) { i.AddLast(new SD(c)); } LinkedList<SD> o; LinkedList<SD> r; r = p.opKStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<SD> i = new Queue<SD>(); for(int c = 0; c < _length; ++c) { i.Enqueue(new SD(c)); } Queue<SD> o; Queue<SD> r; r = p.opQStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<SD> i = new Stack<SD>(); for(int c = 0; c < _length; ++c) { i.Push(new SD(c)); } Stack<SD> o; Stack<SD> r; r = p.opSStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CStructSD i = new CStructSD(_length); for(int c = 0; c < _length; ++c) { i.Add(new SD(c)); } CStructSD o; CStructSD r; r = p.opCStructSD(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CV[] i = new CV[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CV(c); } CV[] o; CV[] r; r = p.opACVS(i, out o); System.Collections.IEnumerator eo = o.GetEnumerator(); System.Collections.IEnumerator er = r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == ((CV)eo.Current).i); test(obj.i == ((CV)er.Current).i); } } { List<CV> i = new List<CV>(_length); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } List<CV> o; List<CV> r; r = p.opLCVS(i, out o); IEnumerator<CV> eo = o.GetEnumerator(); IEnumerator<CV> er = r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == eo.Current.i); test(obj.i == er.Current.i); } } { CCVS i = new CCVS(_length); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } CCVS o; CCVS r; r = p.opCCVS(i, out o); IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator(); IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.i == eo.Current.i); test(obj.i == er.Current.i); } } { CR[] i = new CR[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CR(new CV(c)); } CR[] o; CR[] r; r = p.opACRS(i, out o); System.Collections.IEnumerator eo = o.GetEnumerator(); System.Collections.IEnumerator er = r.GetEnumerator(); foreach(CR obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.v.i == ((CR)eo.Current).v.i); test(obj.v.i == ((CR)er.Current).v.i); } } { List<CR> i = new List<CR>(_length); for(int c = 0; c < _length; ++c) { i.Add(new CR(new CV(c))); } List<CR> o; List<CR> r; r = p.opLCRS(i, out o); IEnumerator<CR> eo = o.GetEnumerator(); IEnumerator<CR> er = r.GetEnumerator(); foreach(CR obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.v.i == eo.Current.v.i); test(obj.v.i == er.Current.v.i); } } { CCRS i = new CCRS(_length); for(int c = 0; c < _length; ++c) { i.Add(new CR(new CV(c))); } CCRS o; CCRS r; r = p.opCCRS(i, out o); IEnumerator<CR> eo = (IEnumerator<CR>)o.GetEnumerator(); IEnumerator<CR> er = (IEnumerator<CR>)r.GetEnumerator(); foreach(CR obj in i) { eo.MoveNext(); er.MoveNext(); test(obj.v.i == eo.Current.v.i); test(obj.v.i == er.Current.v.i); } } { En[] i = new En[_length]; for(int c = 0; c < _length; ++c) { i[c] = (En)(c % 3); } En[] o; En[] r; r = p.opAEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<En> i = new List<En>(_length); for(int c = 0; c < _length; ++c) { i.Add((En)(c % 3)); } List<En> o; List<En> r; r = p.opLEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<En> i = new LinkedList<En>(); for(int c = 0; c < _length; ++c) { i.AddLast((En)(c % 3)); } LinkedList<En> o; LinkedList<En> r; r = p.opKEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<En> i = new Queue<En>(); for(int c = 0; c < _length; ++c) { i.Enqueue((En)(c % 3)); } Queue<En> o; Queue<En> r; r = p.opQEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<En> i = new Stack<En>(); for(int c = 0; c < _length; ++c) { i.Push((En)(c % 3)); } Stack<En> o; Stack<En> r; r = p.opSEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CEnS i = new CEnS(_length); for(int c = 0; c < _length; ++c) { i.Add((En)(c % 3)); } CEnS o; CEnS r; r = p.opCEnS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CVPrx[] i = new CVPrx[_length]; for(int c = 0; c < _length; ++c) { i[c] = CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())); } CVPrx[] o; CVPrx[] r; r = p.opACVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { List<CVPrx> i = new List<CVPrx>(_length); for(int c = 0; c < _length; ++c) { i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } List<CVPrx> o; List<CVPrx> r; r = p.opLCVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { LinkedList<CVPrx> i = new LinkedList<CVPrx>(); for(int c = 0; c < _length; ++c) { i.AddLast(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } LinkedList<CVPrx> o; LinkedList<CVPrx> r; r = p.opKCVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Queue<CVPrx> i = new Queue<CVPrx>(); for(int c = 0; c < _length; ++c) { i.Enqueue(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } Queue<CVPrx> o; Queue<CVPrx> r; r = p.opQCVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Stack<CVPrx> i = new Stack<CVPrx>(); for(int c = 0; c < _length; ++c) { i.Push(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } Stack<CVPrx> o; Stack<CVPrx> r; r = p.opSCVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { CCVPrxS i = new CCVPrxS(_length); for(int c = 0; c < _length; ++c) { i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } CCVPrxS o; CCVPrxS r; r = p.opCCVPrxS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Custom<int> i = new Custom<int>(); for(int c = 0; c < _length; ++c) { i.Add(c); } Custom<int> o; Custom<int> r; r = p.opCustomIntS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Custom<CV> i = new Custom<CV>(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } i.Add(null); Custom<CV> o; Custom<CV> r; r = p.opCustomCVS(i, out o); IEnumerator<CV> eo = (IEnumerator<CV>)o.GetEnumerator(); IEnumerator<CV> er = (IEnumerator<CV>)r.GetEnumerator(); foreach(CV obj in i) { eo.MoveNext(); er.MoveNext(); if(obj == null) { test(eo.Current == null); test(er.Current == null); } else { test(obj.i == eo.Current.i); test(obj.i == er.Current.i); } } } { Custom<Custom<int>> i = new Custom<Custom<int>>(); for(int c = 0; c < _length; ++c) { Custom<int> inner = new Custom<int>(); for(int j = 0; j < c; ++j) { inner.Add(j); } i.Add(inner); } Custom<Custom<int>> o; Custom<Custom<int>> r; r = p.opCustomIntSS(i, out o); test(Ice.CollectionComparer.Equals(i, o)); test(Ice.CollectionComparer.Equals(i, r)); } { Custom<Custom<CV>> i = new Custom<Custom<CV>>(); for(int c = 0; c < _length; ++c) { Custom<CV> inner = new Custom<CV>(); for(int j = 0; j < c; ++j) { inner.Add(new CV(j)); } i.Add(inner); } Custom<Custom<CV>> o; Custom<Custom<CV>> r; r = p.opCustomCVSS(i, out o); IEnumerator<Custom<CV>> eo = (IEnumerator<Custom<CV>>)o.GetEnumerator(); IEnumerator<Custom<CV>> er = (IEnumerator<Custom<CV>>)r.GetEnumerator(); foreach(Custom<CV> s in i) { eo.MoveNext(); er.MoveNext(); IEnumerator<CV> io = (IEnumerator<CV>)eo.Current.GetEnumerator(); IEnumerator<CV> ir = (IEnumerator<CV>)er.Current.GetEnumerator(); foreach(CV obj in s) { io.MoveNext(); ir.MoveNext(); if(obj == null) { test(io.Current == null); test(ir.Current == null); } else { test(obj.i == io.Current.i); test(obj.i == ir.Current.i); } } } } #if !COMPACT && !SILVERLIGHT { Serialize.Small i = null; Serialize.Small o; Serialize.Small r; r = p.opSerialSmallCSharp(i, out o); test(o == null); test(r == null); } { Serialize.Small i = new Serialize.Small(); i.i = 99; Serialize.Small o; Serialize.Small r; try { r = p.opSerialSmallCSharp(i, out o); test(o.i == 99); test(r.i == 99); } catch(Ice.OperationNotExistException) { // OK, talking to non-C# server. } } { Serialize.Large i = new Serialize.Large(); i.d1 = 1.0; i.d2 = 2.0; i.d3 = 3.0; i.d4 = 4.0; i.d5 = 5.0; i.d6 = 6.0; i.d7 = 7.0; i.d8 = 8.0; i.d9 = 9.0; i.d10 = 10.0; Serialize.Large o; Serialize.Large r; try { r = p.opSerialLargeCSharp(i, out o); test(o.d1 == 1.0); test(o.d2 == 2.0); test(o.d3 == 3.0); test(o.d4 == 4.0); test(o.d5 == 5.0); test(o.d6 == 6.0); test(o.d7 == 7.0); test(o.d8 == 8.0); test(o.d9 == 9.0); test(o.d10 == 10.0); test(r.d1 == 1.0); test(r.d2 == 2.0); test(r.d3 == 3.0); test(r.d4 == 4.0); test(r.d5 == 5.0); test(r.d6 == 6.0); test(r.d7 == 7.0); test(r.d8 == 8.0); test(r.d9 == 9.0); test(r.d10 == 10.0); } catch(Ice.OperationNotExistException) { // OK, talking to non-C# server. } } { Serialize.Struct i = new Serialize.Struct(); i.o = null; i.o2 = i; i.s = null; i.s2 = "Hello"; Serialize.Struct o; Serialize.Struct r; try { r = p.opSerialStructCSharp(i, out o); test(o.o == null); test(o.o2 != null); test(((Serialize.Struct)(o.o2)).o == null); test(((Serialize.Struct)(o.o2)).o2 == o.o2); test(o.s == null); test(o.s2.Equals("Hello")); test(r.o == null); test(r.o2 != null); test(((Serialize.Struct)(r.o2)).o == null); test(((Serialize.Struct)(r.o2)).o2 == r.o2); test(r.s == null); test(r.s2.Equals("Hello")); } catch(Ice.OperationNotExistException) { // OK, talking to non-C# server. } } #endif }
public override void ice_response(SD[] r, SD[] o) { test(Ice.CollectionComparer.Equals(_i, o)); test(Ice.CollectionComparer.Equals(_i, r)); callback.called(); }
/// <summary>Gets the factory of the entity with the SD.HnD.DAL.EntityType specified</summary> /// <param name="typeOfEntity">The type of entity.</param> /// <returns>factory to use or null if not found</returns> public static IEntityFactory GetFactory(SD.HnD.DAL.EntityType typeOfEntity) { return GetFactory(GeneralEntityFactory.Create(typeOfEntity).GetType()); }
public override Task<MyClass_OpAStructSDResult> opAStructSDAsync(SD[] i, Ice.Current current) { return Task.FromResult<MyClass_OpAStructSDResult>(new MyClass_OpAStructSDResult(i, i)); }
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary> /// <param name="leftOperand">The left operand, which is an entity.</param> /// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param> /// <param name="rightOperand">The right operand which is an entity.</param> /// <param name="aliasLeftOperand">The alias of the left operand. If you don't want to / need to alias the left operand (only alias if you have to), specify string.Empty.</param> /// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param> /// <param name="onClause">The on clause for the join.</param> public DynamicRelation(SD.HnD.DAL.EntityType leftOperand, JoinHint joinType, SD.HnD.DAL.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause) { this.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, GeneralEntityFactory.Create(leftOperand), GeneralEntityFactory.Create(rightOperand)); }
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary> /// <param name="leftOperand">The left operand.</param> /// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param> /// <param name="rightOperand">The right operand which is an entity type.</param> /// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param> /// <param name="onClause">The on clause for the join.</param> public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, SD.HnD.DAL.EntityType rightOperand, string aliasRightOperand, IPredicate onClause) { this.InitClass(joinType, string.Empty, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand)); }
/// <summary>Creates a new entity collection</summary> /// <param name="typeToUse">The entity type to create the collection for.</param> /// <returns>A new entity collection object.</returns> public static IEntityCollection Create(SD.HnD.DAL.EntityType typeToUse) { switch(typeToUse) { case SD.HnD.DAL.EntityType.ActionRightEntity: return new ActionRightCollection(); case SD.HnD.DAL.EntityType.AttachmentEntity: return new AttachmentCollection(); case SD.HnD.DAL.EntityType.AuditActionEntity: return new AuditActionCollection(); case SD.HnD.DAL.EntityType.AuditDataCoreEntity: return new AuditDataCoreCollection(); case SD.HnD.DAL.EntityType.AuditDataMessageRelatedEntity: return new AuditDataMessageRelatedCollection(); case SD.HnD.DAL.EntityType.AuditDataThreadRelatedEntity: return new AuditDataThreadRelatedCollection(); case SD.HnD.DAL.EntityType.BookmarkEntity: return new BookmarkCollection(); case SD.HnD.DAL.EntityType.ForumEntity: return new ForumCollection(); case SD.HnD.DAL.EntityType.ForumRoleForumActionRightEntity: return new ForumRoleForumActionRightCollection(); case SD.HnD.DAL.EntityType.IPBanEntity: return new IPBanCollection(); case SD.HnD.DAL.EntityType.MessageEntity: return new MessageCollection(); case SD.HnD.DAL.EntityType.RoleEntity: return new RoleCollection(); case SD.HnD.DAL.EntityType.RoleAuditActionEntity: return new RoleAuditActionCollection(); case SD.HnD.DAL.EntityType.RoleSystemActionRightEntity: return new RoleSystemActionRightCollection(); case SD.HnD.DAL.EntityType.RoleUserEntity: return new RoleUserCollection(); case SD.HnD.DAL.EntityType.SectionEntity: return new SectionCollection(); case SD.HnD.DAL.EntityType.SupportQueueEntity: return new SupportQueueCollection(); case SD.HnD.DAL.EntityType.SupportQueueThreadEntity: return new SupportQueueThreadCollection(); case SD.HnD.DAL.EntityType.SystemDataEntity: return new SystemDataCollection(); case SD.HnD.DAL.EntityType.ThreadEntity: return new ThreadCollection(); case SD.HnD.DAL.EntityType.ThreadSubscriptionEntity: return new ThreadSubscriptionCollection(); case SD.HnD.DAL.EntityType.UserEntity: return new UserCollection(); case SD.HnD.DAL.EntityType.UserTitleEntity: return new UserTitleCollection(); default: return null; } }
/// <summary>CTor</summary> /// <param name="entityName">Name of the entity.</param> /// <param name="typeOfEntity">The type of entity.</param> public EntityFactoryBase(string entityName, SD.HnD.DAL.EntityType typeOfEntity) : base(entityName) { _typeOfEntity = typeOfEntity; }
public override void opAStructSD_async(AMD_MyClass_opAStructSD cb, SD[] i, Ice.Current current) { cb.ice_response(i, i); }
/// <summary> /// Handles the PerformWork event of the _ipBanDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs"/> instance containing the event data.</param> protected void _ipBanDS_PerformWork(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs e) { // the event args contain the UnitOfWork to persist. Pass it on to the BL method SecurityManager.PersistIPBanUnitOfWork(e.Uow); // invalidate cache CacheManager.InvalidateCachedItem(CacheKeys.AllIPBans); }
public SFS() { SD = new SD(); AC = new AC(); FC = new FC(); }
/// <summary> /// Handles the PerformGetDbCount event of the _ipBanDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformGetDbCountEventArgs"/> instance containing the event data.</param> protected void _ipBanDS_PerformGetDbCount(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformGetDbCountEventArgs e) { e.DbCount = SecurityGuiHelper.GetTotalIPBanCount(); }
public AMI_MyClass_opAStructSDI(SD[] i) { _i = i; }
/// <summary> /// Handles the PerformSelect event of the _ipBanDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs"/> instance containing the event data.</param> protected void _ipBanDS_PerformSelect(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs e) { // fetch the page requested, using a BL method. We'll receive a collection from the BL method and will set the collection of the control to the // collection we'll receive. Specify that the user entity is prefetched into the IPBan entity. _ipBanDS.EntityCollection = SecurityGuiHelper.GetAllIPBans(e.PageNumber, e.PageSize, true); }
internal static void twowaysAMI(Ice.Communicator communicator, Test.MyClassPrx p) { { byte[] i = new byte[_length]; for(int c = 0; c < _length; ++c) { i[c] = (byte)c; } AMI_MyClass_opAByteSI cb = new AMI_MyClass_opAByteSI(i); p.opAByteS_async(cb, i); cb.check(); } { List<byte> i = new List<byte>(); for(int c = 0; c < _length; ++c) { i.Add((byte)c); } AMI_MyClass_opLByteSI cb = new AMI_MyClass_opLByteSI(i); p.opLByteS_async(cb, i); cb.check(); } { LinkedList<byte> i = new LinkedList<byte>(); for(int c = 0; c < _length; ++c) { i.AddLast((byte)c); } AMI_MyClass_opKByteSI cb = new AMI_MyClass_opKByteSI(i); p.opKByteS_async(cb, i); cb.check(); } { Queue<byte> i = new Queue<byte>(); for(int c = 0; c < _length; ++c) { i.Enqueue((byte)c); } AMI_MyClass_opQByteSI cb = new AMI_MyClass_opQByteSI(i); p.opQByteS_async(cb, i); cb.check(); } { Stack<byte> i = new Stack<byte>(); for(int c = 0; c < _length; ++c) { i.Push((byte)c); } AMI_MyClass_opSByteSI cb = new AMI_MyClass_opSByteSI(i); p.opSByteS_async(cb, i); cb.check(); } { CByteS i = new CByteS(); for(int c = 0; c < _length; ++c) { i.Add((byte)c); } AMI_MyClass_opCByteSI cb = new AMI_MyClass_opCByteSI(i); p.opCByteS_async(cb, i); cb.check(); } { bool[] i = new bool[_length]; for(int c = 0; c < _length; ++c) { i[c] = c % 1 == 1; } AMI_MyClass_opABoolSI cb = new AMI_MyClass_opABoolSI(i); p.opABoolS_async(cb, i); cb.check(); } { List<bool> i = new List<bool>(); for(int c = 0; c < _length; ++c) { i.Add(c % 1 == 1); } AMI_MyClass_opLBoolSI cb = new AMI_MyClass_opLBoolSI(i); p.opLBoolS_async(cb, i); cb.check(); } { LinkedList<bool> i = new LinkedList<bool>(); for(int c = 0; c < _length; ++c) { i.AddLast(c % 1 == 1); } AMI_MyClass_opKBoolSI cb = new AMI_MyClass_opKBoolSI(i); p.opKBoolS_async(cb, i); cb.check(); } { Queue<bool> i = new Queue<bool>(); for(int c = 0; c < _length; ++c) { i.Enqueue(c % 1 == 1); } AMI_MyClass_opQBoolSI cb = new AMI_MyClass_opQBoolSI(i); p.opQBoolS_async(cb, i); cb.check(); } { Stack<bool> i = new Stack<bool>(); for(int c = 0; c < _length; ++c) { i.Push(c % 1 == 1); } AMI_MyClass_opSBoolSI cb = new AMI_MyClass_opSBoolSI(i); p.opSBoolS_async(cb, i); cb.check(); } { CBoolS i = new CBoolS(); for(int c = 0; c < _length; ++c) { i.Add(c % 1 == 1); } AMI_MyClass_opCBoolSI cb = new AMI_MyClass_opCBoolSI(i); p.opCBoolS_async(cb, i); cb.check(); } { short[] i = new short[_length]; for(int c = 0; c < _length; ++c) { i[c] = (short)c; } AMI_MyClass_opAShortSI cb = new AMI_MyClass_opAShortSI(i); p.opAShortS_async(cb, i); cb.check(); } { List<short> i = new List<short>(); for(int c = 0; c < _length; ++c) { i.Add((short)c); } AMI_MyClass_opLShortSI cb = new AMI_MyClass_opLShortSI(i); p.opLShortS_async(cb, i); cb.check(); } { LinkedList<short> i = new LinkedList<short>(); for(int c = 0; c < _length; ++c) { i.AddLast((short)c); } AMI_MyClass_opKShortSI cb = new AMI_MyClass_opKShortSI(i); p.opKShortS_async(cb, i); cb.check(); } { Queue<short> i = new Queue<short>(); for(int c = 0; c < _length; ++c) { i.Enqueue((short)c); } AMI_MyClass_opQShortSI cb = new AMI_MyClass_opQShortSI(i); p.opQShortS_async(cb, i); cb.check(); } { Stack<short> i = new Stack<short>(); for(int c = 0; c < _length; ++c) { i.Push((short)c); } AMI_MyClass_opSShortSI cb = new AMI_MyClass_opSShortSI(i); p.opSShortS_async(cb, i); cb.check(); } { CShortS i = new CShortS(); for(int c = 0; c < _length; ++c) { i.Add((short)c); } AMI_MyClass_opCShortSI cb = new AMI_MyClass_opCShortSI(i); p.opCShortS_async(cb, i); cb.check(); } { int[] i = new int[_length]; for(int c = 0; c < _length; ++c) { i[c] = (int)c; } AMI_MyClass_opAIntSI cb = new AMI_MyClass_opAIntSI(i); p.opAIntS_async(cb, i); cb.check(); } { List<int> i = new List<int>(); for(int c = 0; c < _length; ++c) { i.Add((int)c); } AMI_MyClass_opLIntSI cb = new AMI_MyClass_opLIntSI(i); p.opLIntS_async(cb, i); cb.check(); } { LinkedList<int> i = new LinkedList<int>(); for(int c = 0; c < _length; ++c) { i.AddLast((int)c); } AMI_MyClass_opKIntSI cb = new AMI_MyClass_opKIntSI(i); p.opKIntS_async(cb, i); cb.check(); } { Queue<int> i = new Queue<int>(); for(int c = 0; c < _length; ++c) { i.Enqueue((int)c); } AMI_MyClass_opQIntSI cb = new AMI_MyClass_opQIntSI(i); p.opQIntS_async(cb, i); cb.check(); } { Stack<int> i = new Stack<int>(); for(int c = 0; c < _length; ++c) { i.Push((int)c); } AMI_MyClass_opSIntSI cb = new AMI_MyClass_opSIntSI(i); p.opSIntS_async(cb, i); cb.check(); } { CIntS i = new CIntS(); for(int c = 0; c < _length; ++c) { i.Add((int)c); } AMI_MyClass_opCIntSI cb = new AMI_MyClass_opCIntSI(i); p.opCIntS_async(cb, i); cb.check(); } { long[] i = new long[_length]; for(int c = 0; c < _length; ++c) { i[c] = (long)c; } AMI_MyClass_opALongSI cb = new AMI_MyClass_opALongSI(i); p.opALongS_async(cb, i); cb.check(); } { List<long> i = new List<long>(); for(int c = 0; c < _length; ++c) { i.Add((long)c); } AMI_MyClass_opLLongSI cb = new AMI_MyClass_opLLongSI(i); p.opLLongS_async(cb, i); cb.check(); } { LinkedList<long> i = new LinkedList<long>(); for(int c = 0; c < _length; ++c) { i.AddLast((long)c); } AMI_MyClass_opKLongSI cb = new AMI_MyClass_opKLongSI(i); p.opKLongS_async(cb, i); cb.check(); } { Queue<long> i = new Queue<long>(); for(int c = 0; c < _length; ++c) { i.Enqueue((long)c); } AMI_MyClass_opQLongSI cb = new AMI_MyClass_opQLongSI(i); p.opQLongS_async(cb, i); cb.check(); } { Stack<long> i = new Stack<long>(); for(int c = 0; c < _length; ++c) { i.Push((long)c); } AMI_MyClass_opSLongSI cb = new AMI_MyClass_opSLongSI(i); p.opSLongS_async(cb, i); cb.check(); } { CLongS i = new CLongS(); for(int c = 0; c < _length; ++c) { i.Add((long)c); } AMI_MyClass_opCLongSI cb = new AMI_MyClass_opCLongSI(i); p.opCLongS_async(cb, i); cb.check(); } { float[] i = new float[_length]; for(int c = 0; c < _length; ++c) { i[c] = (float)c; } AMI_MyClass_opAFloatSI cb = new AMI_MyClass_opAFloatSI(i); p.opAFloatS_async(cb, i); cb.check(); } { List<float> i = new List<float>(); for(int c = 0; c < _length; ++c) { i.Add((float)c); } AMI_MyClass_opLFloatSI cb = new AMI_MyClass_opLFloatSI(i); p.opLFloatS_async(cb, i); cb.check(); } { LinkedList<float> i = new LinkedList<float>(); for(int c = 0; c < _length; ++c) { i.AddLast((float)c); } AMI_MyClass_opKFloatSI cb = new AMI_MyClass_opKFloatSI(i); p.opKFloatS_async(cb, i); cb.check(); } { Queue<float> i = new Queue<float>(); for(int c = 0; c < _length; ++c) { i.Enqueue((float)c); } AMI_MyClass_opQFloatSI cb = new AMI_MyClass_opQFloatSI(i); p.opQFloatS_async(cb, i); cb.check(); } { Stack<float> i = new Stack<float>(); for(int c = 0; c < _length; ++c) { i.Push((float)c); } AMI_MyClass_opSFloatSI cb = new AMI_MyClass_opSFloatSI(i); p.opSFloatS_async(cb, i); cb.check(); } { CFloatS i = new CFloatS(); for(int c = 0; c < _length; ++c) { i.Add((float)c); } AMI_MyClass_opCFloatSI cb = new AMI_MyClass_opCFloatSI(i); p.opCFloatS_async(cb, i); cb.check(); } { double[] i = new double[_length]; for(int c = 0; c < _length; ++c) { i[c] = (double)c; } AMI_MyClass_opADoubleSI cb = new AMI_MyClass_opADoubleSI(i); p.opADoubleS_async(cb, i); cb.check(); } { List<double> i = new List<double>(); for(int c = 0; c < _length; ++c) { i.Add((double)c); } AMI_MyClass_opLDoubleSI cb = new AMI_MyClass_opLDoubleSI(i); p.opLDoubleS_async(cb, i); cb.check(); } { LinkedList<double> i = new LinkedList<double>(); for(int c = 0; c < _length; ++c) { i.AddLast((double)c); } AMI_MyClass_opKDoubleSI cb = new AMI_MyClass_opKDoubleSI(i); p.opKDoubleS_async(cb, i); cb.check(); } { Queue<double> i = new Queue<double>(); for(int c = 0; c < _length; ++c) { i.Enqueue((double)c); } AMI_MyClass_opQDoubleSI cb = new AMI_MyClass_opQDoubleSI(i); p.opQDoubleS_async(cb, i); cb.check(); } { Stack<double> i = new Stack<double>(); for(int c = 0; c < _length; ++c) { i.Push((double)c); } AMI_MyClass_opSDoubleSI cb = new AMI_MyClass_opSDoubleSI(i); p.opSDoubleS_async(cb, i); cb.check(); } { CDoubleS i = new CDoubleS(); for(int c = 0; c < _length; ++c) { i.Add((double)c); } AMI_MyClass_opCDoubleSI cb = new AMI_MyClass_opCDoubleSI(i); p.opCDoubleS_async(cb, i); cb.check(); } { string[] i = new string[_length]; for(int c = 0; c < _length; ++c) { i[c] = c.ToString(); } AMI_MyClass_opAStringSI cb = new AMI_MyClass_opAStringSI(i); p.opAStringS_async(cb, i); cb.check(); } { List<string> i = new List<string>(); for(int c = 0; c < _length; ++c) { i.Add(c.ToString()); } AMI_MyClass_opLStringSI cb = new AMI_MyClass_opLStringSI(i); p.opLStringS_async(cb, i); cb.check(); } { LinkedList<string> i = new LinkedList<string>(); for(int c = 0; c < _length; ++c) { i.AddLast(c.ToString()); } AMI_MyClass_opKStringSI cb = new AMI_MyClass_opKStringSI(i); p.opKStringS_async(cb, i); cb.check(); } { Queue<string> i = new Queue<string>(); for(int c = 0; c < _length; ++c) { i.Enqueue(c.ToString()); } AMI_MyClass_opQStringSI cb = new AMI_MyClass_opQStringSI(i); p.opQStringS_async(cb, i); cb.check(); } { Stack<string> i = new Stack<string>(); for(int c = 0; c < _length; ++c) { i.Push(c.ToString()); } AMI_MyClass_opSStringSI cb = new AMI_MyClass_opSStringSI(i); p.opSStringS_async(cb, i); cb.check(); } { CStringS i = new CStringS(); for(int c = 0; c < _length; ++c) { i.Add(c.ToString()); } AMI_MyClass_opCStringSI cb = new AMI_MyClass_opCStringSI(i); p.opCStringS_async(cb, i); cb.check(); } { Ice.Object[] i = new Ice.Object[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CV(c); } AMI_MyClass_opAObjectSI cb = new AMI_MyClass_opAObjectSI(i); p.opAObjectS_async(cb, i); cb.check(); } { List<Ice.Object> i = new List<Ice.Object>(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } AMI_MyClass_opLObjectSI cb = new AMI_MyClass_opLObjectSI(i); p.opLObjectS_async(cb, i); cb.check(); } { CObjectS i = new CObjectS(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } AMI_MyClass_opCObjectSI cb = new AMI_MyClass_opCObjectSI(i); p.opCObjectS_async(cb, i); cb.check(); } { Ice.ObjectPrx[] i = new Ice.ObjectPrx[_length]; for(int c = 0; c < _length; ++c) { i[c] = communicator.stringToProxy(c.ToString()); } AMI_MyClass_opAObjectPrxSI cb = new AMI_MyClass_opAObjectPrxSI(i); p.opAObjectPrxS_async(cb, i); cb.check(); } { List<Ice.ObjectPrx> i = new List<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.Add(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opLObjectPrxSI cb = new AMI_MyClass_opLObjectPrxSI(i); p.opLObjectPrxS_async(cb, i); cb.check(); } { LinkedList<Ice.ObjectPrx> i = new LinkedList<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.AddLast(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opKObjectPrxSI cb = new AMI_MyClass_opKObjectPrxSI(i); p.opKObjectPrxS_async(cb, i); cb.check(); } { Queue<Ice.ObjectPrx> i = new Queue<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.Enqueue(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opQObjectPrxSI cb = new AMI_MyClass_opQObjectPrxSI(i); p.opQObjectPrxS_async(cb, i); cb.check(); } { Stack<Ice.ObjectPrx> i = new Stack<Ice.ObjectPrx>(); for(int c = 0; c < _length; ++c) { i.Push(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opSObjectPrxSI cb = new AMI_MyClass_opSObjectPrxSI(i); p.opSObjectPrxS_async(cb, i); cb.check(); } { CObjectPrxS i = new CObjectPrxS(); for(int c = 0; c < _length; ++c) { i.Add(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opCObjectPrxSI cb = new AMI_MyClass_opCObjectPrxSI(i); p.opCObjectPrxS_async(cb, i); cb.check(); } { S[] i = new S[_length]; for(int c = 0; c < _length; ++c) { i[c].i = c; } AMI_MyClass_opAStructSI cb = new AMI_MyClass_opAStructSI(i); p.opAStructS_async(cb, i); cb.check(); } { List<S> i = new List<S>(); for(int c = 0; c < _length; ++c) { i.Add(new S(c)); } AMI_MyClass_opLStructSI cb = new AMI_MyClass_opLStructSI(i); p.opLStructS_async(cb, i); cb.check(); } { LinkedList<S> i = new LinkedList<S>(); for(int c = 0; c < _length; ++c) { i.AddLast(new S(c)); } AMI_MyClass_opKStructSI cb = new AMI_MyClass_opKStructSI(i); p.opKStructS_async(cb, i); cb.check(); } { Queue<S> i = new Queue<S>(); for(int c = 0; c < _length; ++c) { i.Enqueue(new S(c)); } AMI_MyClass_opQStructSI cb = new AMI_MyClass_opQStructSI(i); p.opQStructS_async(cb, i); cb.check(); } { Stack<S> i = new Stack<S>(); for(int c = 0; c < _length; ++c) { i.Push(new S(c)); } AMI_MyClass_opSStructSI cb = new AMI_MyClass_opSStructSI(i); p.opSStructS_async(cb, i); cb.check(); } { CStructS i = new CStructS(); for(int c = 0; c < _length; ++c) { i.Add(new S(c)); } AMI_MyClass_opCStructSI cb = new AMI_MyClass_opCStructSI(i); p.opCStructS_async(cb, i); cb.check(); } { SD[] i = new SD[_length]; for(int c = 0; c < _length; ++c) { i[c] = new SD(c); } AMI_MyClass_opAStructSDI cb = new AMI_MyClass_opAStructSDI(i); p.opAStructSD_async(cb, i); cb.check(); } { List<SD> i = new List<SD>(); for(int c = 0; c < _length; ++c) { i.Add(new SD(c)); } AMI_MyClass_opLStructSDI cb = new AMI_MyClass_opLStructSDI(i); p.opLStructSD_async(cb, i); cb.check(); } { LinkedList<SD> i = new LinkedList<SD>(); for(int c = 0; c < _length; ++c) { i.AddLast(new SD(c)); } AMI_MyClass_opKStructSDI cb = new AMI_MyClass_opKStructSDI(i); p.opKStructSD_async(cb, i); cb.check(); } { Queue<SD> i = new Queue<SD>(); for(int c = 0; c < _length; ++c) { i.Enqueue(new SD(c)); } AMI_MyClass_opQStructSDI cb = new AMI_MyClass_opQStructSDI(i); p.opQStructSD_async(cb, i); cb.check(); } { Stack<SD> i = new Stack<SD>(); for(int c = 0; c < _length; ++c) { i.Push(new SD(c)); } AMI_MyClass_opSStructSDI cb = new AMI_MyClass_opSStructSDI(i); p.opSStructSD_async(cb, i); cb.check(); } { CStructSD i = new CStructSD(); for(int c = 0; c < _length; ++c) { i.Add(new SD(c)); } AMI_MyClass_opCStructSDI cb = new AMI_MyClass_opCStructSDI(i); p.opCStructSD_async(cb, i); cb.check(); } { CV[] i = new CV[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CV(c); } AMI_MyClass_opACVSI cb = new AMI_MyClass_opACVSI(i); p.opACVS_async(cb, i); cb.check(); } { List<CV> i = new List<CV>(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } AMI_MyClass_opLCVSI cb = new AMI_MyClass_opLCVSI(i); p.opLCVS_async(cb, i); cb.check(); } { CCVS i = new CCVS(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } AMI_MyClass_opCCVSI cb = new AMI_MyClass_opCCVSI(i); p.opCCVS_async(cb, i); cb.check(); } { CVPrx[] i = new CVPrx[_length]; for(int c = 0; c < _length; ++c) { i[c] = CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString())); } AMI_MyClass_opACVPrxSI cb = new AMI_MyClass_opACVPrxSI(i); p.opACVPrxS_async(cb, i); cb.check(); } { List<CVPrx> i = new List<CVPrx>(); for(int c = 0; c < _length; ++c) { i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } AMI_MyClass_opLCVPrxSI cb = new AMI_MyClass_opLCVPrxSI(i); p.opLCVPrxS_async(cb, i); cb.check(); } { LinkedList<CVPrx> i = new LinkedList<CVPrx>(); for(int c = 0; c < _length; ++c) { i.AddLast(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } AMI_MyClass_opKCVPrxSI cb = new AMI_MyClass_opKCVPrxSI(i); p.opKCVPrxS_async(cb, i); cb.check(); } { Queue<CVPrx> i = new Queue<CVPrx>(); for(int c = 0; c < _length; ++c) { i.Enqueue(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } AMI_MyClass_opQCVPrxSI cb = new AMI_MyClass_opQCVPrxSI(i); p.opQCVPrxS_async(cb, i); cb.check(); } { Stack<CVPrx> i = new Stack<CVPrx>(); for(int c = 0; c < _length; ++c) { i.Push(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } AMI_MyClass_opSCVPrxSI cb = new AMI_MyClass_opSCVPrxSI(i); p.opSCVPrxS_async(cb, i); cb.check(); } { CCVPrxS i = new CCVPrxS(); for(int c = 0; c < _length; ++c) { i.Add(CVPrxHelper.uncheckedCast(communicator.stringToProxy(c.ToString()))); } AMI_MyClass_opCCVPrxSI cb = new AMI_MyClass_opCCVPrxSI(i); p.opCCVPrxS_async(cb, i); cb.check(); } { CR[] i = new CR[_length]; for(int c = 0; c < _length; ++c) { i[c] = new CR(new CV(c)); } AMI_MyClass_opACRSI cb = new AMI_MyClass_opACRSI(i); p.opACRS_async(cb, i); cb.check(); } { List<CR> i = new List<CR>(); for(int c = 0; c < _length; ++c) { i.Add(new CR(new CV(c))); } AMI_MyClass_opLCRSI cb = new AMI_MyClass_opLCRSI(i); p.opLCRS_async(cb, i); cb.check(); } { CCRS i = new CCRS(); for(int c = 0; c < _length; ++c) { i.Add(new CR(new CV(c))); } AMI_MyClass_opCCRSI cb = new AMI_MyClass_opCCRSI(i); p.opCCRS_async(cb, i); cb.check(); } { En[] i = new En[_length]; for(int c = 0; c < _length; ++c) { i[c] = (En)(c % 3); } AMI_MyClass_opAEnSI cb = new AMI_MyClass_opAEnSI(i); p.opAEnS_async(cb, i); cb.check(); } { List<En> i = new List<En>(); for(int c = 0; c < _length; ++c) { i.Add((En)(c % 3)); } AMI_MyClass_opLEnSI cb = new AMI_MyClass_opLEnSI(i); p.opLEnS_async(cb, i); cb.check(); } { LinkedList<En> i = new LinkedList<En>(); for(int c = 0; c < _length; ++c) { i.AddLast((En)(c % 3)); } AMI_MyClass_opKEnSI cb = new AMI_MyClass_opKEnSI(i); p.opKEnS_async(cb, i); cb.check(); } { Queue<En> i = new Queue<En>(); for(int c = 0; c < _length; ++c) { i.Enqueue((En)(c % 3)); } AMI_MyClass_opQEnSI cb = new AMI_MyClass_opQEnSI(i); p.opQEnS_async(cb, i); cb.check(); } { Stack<En> i = new Stack<En>(); for(int c = 0; c < _length; ++c) { i.Push((En)(c % 3)); } AMI_MyClass_opSEnSI cb = new AMI_MyClass_opSEnSI(i); p.opSEnS_async(cb, i); cb.check(); } { CEnS i = new CEnS(); for(int c = 0; c < _length; ++c) { i.Add((En)(c % 3)); } AMI_MyClass_opCEnSI cb = new AMI_MyClass_opCEnSI(i); p.opCEnS_async(cb, i); cb.check(); } { Custom<int> i = new Custom<int>(); for(int c = 0; c < _length; ++c) { i.Add(c); } AMI_MyClass_opCustomIntSI cb = new AMI_MyClass_opCustomIntSI(i); p.opCustomIntS_async(cb, i); cb.check(); } { Custom<CV> i = new Custom<CV>(); for(int c = 0; c < _length; ++c) { i.Add(new CV(c)); } AMI_MyClass_opCustomCVSI cb = new AMI_MyClass_opCustomCVSI(i); p.opCustomCVS_async(cb, i); cb.check(); } { Custom<Custom<int>> i = new Custom<Custom<int>>(); for(int c = 0; c < _length; ++c) { Custom<int> inner = new Custom<int>(); for(int j = 0; j < c; ++j) { inner.Add(j); } i.Add(inner); } AMI_MyClass_opCustomIntSSI cb = new AMI_MyClass_opCustomIntSSI(i); p.opCustomIntSS_async(cb, i); cb.check(); } { Custom<Custom<CV>> i = new Custom<Custom<CV>>(); for(int c = 0; c < _length; ++c) { Custom<CV> inner = new Custom<CV>(); for(int j = 0; j < c; ++j) { inner.Add(new CV(j)); } i.Add(inner); } AMI_MyClass_opCustomCVSSI cb = new AMI_MyClass_opCustomCVSSI(i); p.opCustomCVSS_async(cb, i); cb.check(); } #if !COMPACT && !SILVERLIGHT { Serialize.Small i = null; AMI_MyClass_opSerialSmallCSharpNull cb = new AMI_MyClass_opSerialSmallCSharpNull(); p.opSerialSmallCSharp_async(cb, i); cb.check(); } { Serialize.Small i = new Serialize.Small(); i.i = 99; AMI_MyClass_opSerialSmallCSharp cb = new AMI_MyClass_opSerialSmallCSharp(); p.opSerialSmallCSharp_async(cb, i); cb.check(); } { Serialize.Large i = new Serialize.Large(); i.d1 = 1.0; i.d2 = 2.0; i.d3 = 3.0; i.d4 = 4.0; i.d5 = 5.0; i.d6 = 6.0; i.d7 = 7.0; i.d8 = 8.0; i.d9 = 9.0; i.d10 = 10.0; AMI_MyClass_opSerialLargeCSharp cb = new AMI_MyClass_opSerialLargeCSharp(); p.opSerialLargeCSharp_async(cb, i); cb.check(); } { Serialize.Struct i = new Serialize.Struct(); i.o = null; i.o2 = i; i.s = null; i.s2 = "Hello"; AMI_MyClass_opSerialStructCSharp cb = new AMI_MyClass_opSerialStructCSharp(); p.opSerialStructCSharp_async(cb, i); cb.check(); } #endif }
/// <summary> /// Handles the PerformSelect event of the _forumsDS control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs"/> instance containing the event data.</param> protected void _forumsDS_PerformSelect(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs e) { int selectedSectionID = HnDGeneralUtils.TryConvertToInt(cbxSections.SelectedValue); _forumsDS.EntityCollection = ForumGuiHelper.GetAllForumsInSection(selectedSectionID); }