protected void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { if (e.InstanceType == ChildListType.SubjectChildList.ToString()) { e.Instance = new SubjectChildListDto(); } }
protected void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { if (e.InstanceType == ChildListType.EntityItem.ToString()) { e.Instance = new DEntityItemDto(); } }
protected void ucListManager_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { if (InstanceRowNewing != null) { InstanceRowNewing(this, e); } }
private void childListControl_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { if (ChildListInstanceRowNewing != null) { ChildListInstanceRowNewing(this, e); } }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType)) { case InstanceTypes.TransactionItem: e.Instance = new TransactionItemDto(); break; } }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType)) { case InstanceTypes.Post: PostDto post = new PostDto(); post.IssuedTime = DateTime.Now; e.Instance = post; break; } }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType)) { case InstanceTypes.DomainMainMenu: e.Instance = new DomainMainMenuDto(); break; case InstanceTypes.DomainSetupMenu: e.Instance = new DomainSetupMenuDto(); break; } }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType)) { case InstanceTypes.Contact: e.Instance = new ContactDto(); break; case InstanceTypes.ScheduleEvent: e.Instance = new ScheduleEventDto(); break; case InstanceTypes.ShipTo: e.Instance = new ShipToDto(); break; } }
protected void RadGrid1_InsertCommand(object sender, GridCommandEventArgs e) { GridEditableItem editedItem = e.Item as GridEditableItem; //Update new values OrderedDictionary newValues = new OrderedDictionary(); //The GridTableView will fill the values from all editable columns in the hash e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); InstanceRowNewingEventArgs arg = new InstanceRowNewingEventArgs(InstanceType); if (InstanceRowNewing != null) { InstanceRowNewing(this, arg); } if (arg.Instance != null) { SaveRow(arg.Instance, newValues); } }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { switch ((InstanceTypes)Enum.Parse(typeof(InstanceTypes), e.InstanceType)) { case InstanceTypes.ContactContactMethod: e.Instance = new ContactContactMethodDto(); break; case InstanceTypes.ScheduleEvent: ScheduleEventDto instance = new ScheduleEventDto(); instance.StartDate = DateTime.Today; e.Instance = instance; break; case InstanceTypes.Activity: e.Instance = new ActivityDto(); break; case InstanceTypes.Transaction: e.Instance = new TransactionDto(); break; } }
protected void ucIList_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { e.Instance = new SellingPeriodDto(); }
protected void ucIDetail_ChildListInstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { }
protected void ucListManager_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { e.Instance = new DEntityDto(); }
protected void ucIList_InstanceRowNewing(object sender, InstanceRowNewingEventArgs e) { e.Instance = new ProductDto(); }