Example #1
0
        /// <summary>
        /// Private helper function that appends a member to the next node
        /// in the treeview control
        /// </summary>
        private TreeNode AddMemberToTree(MemberModel member)
        {
            var node = new TreeNode();
            node.Text = member.CompanyName + " (" + member.Country + ")";
            node.Tag = member;
            node.ImageIndex = 1;
            node.SelectedImageIndex = 1;
            this.treeViewMember.Nodes[0].Nodes.Add(node);

            return node;
        }
Example #2
0
 // updates an existing Member in the database.
 public void UpdateMember(MemberModel model)
 {
     var member = Mapper.Map<MemberModel, Member>(model);
     service.UpdateMember(member);
 }
        // updates an existing Member in the database.
        public void UpdateMember(MemberModel model)
        {
            var member = Mapper.Map <MemberModel, Member>(model);

            service.UpdateMember(member);
        }
Example #4
0
 // adds a new Member to the database.
 public void AddMember(MemberModel model)
 {
     var member = Mapper.Map<MemberModel, Member>(model);
     service.InsertMember(member);
 }
        // adds a new Member to the database.
        public void AddMember(MemberModel model)
        {
            var member = Mapper.Map <MemberModel, Member>(model);

            service.InsertMember(member);
        }