Пример #1
0
        //Ship to
        private void btne_ShipTo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseCustomsForm f = new ChooseCustomsForm();

            if (f.ShowDialog() == DialogResult.OK)
            {
                Model.Customer customer = f.SelectedItem as Model.Customer;
                this.btne_ShipTo.EditValue       = customer.CustomerFullName;
                this.txt_ShipToAddress.EditValue = customer.CustomerJinChuAddress;
            }
        }
Пример #2
0
        //Customer
        private void txt_CustomerName_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseCustomsForm f = new ChooseCustomsForm();

            if (f.ShowDialog() == DialogResult.OK)
            {
                Model.Customer customer = f.SelectedItem as Model.Customer;
                this.btne_CustomerName.EditValue = customer.CustomerFullName;
                this.txt_ADDRESS.EditValue       = customer.CustomerAddress;

                //if (customer.Contacts != null && customer.Contacts.Count > 0)
                this.txt_Attn.EditValue = customer.CustomerContact + " ; " + customer.CustomerPhone;
            }
        }