コード例 #1
0
        private void ContactForm_Load(object sender, EventArgs e)
        {
            ContactBindingList contactList = new ContactBindingList();

            using (Ambient.DbSession.Activate())
            {
                contactList.Add(OrderingRepositories.Contact.GetAll());
            }
            mHelper.AddAllColumns();
            mHelper.DataSource = contactList;
        }
コード例 #2
0
ファイル: VendorForm.cs プロジェクト: timyaukey/Ordering
        private void VendorForm_Load(object sender, EventArgs e)
        {
            VendorBindingList  vendorList  = new VendorBindingList();
            ContactBindingList contactList = new ContactBindingList();

            contactList.AddNew();
            using (Ambient.DbSession.Activate())
            {
                vendorList.Add(OrderingRepositories.Vendor.GetAll());
                contactList.Add(OrderingRepositories.Contact.GetAll());
            }
            mHelper.AddAllColumns(contactList);
            mHelper.DataSource = vendorList;
        }