Ejemplo n.º 1
0
        private void buttonEditDepot_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseDepartmentForm f = new ChooseDepartmentForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                (sender as ButtonEdit).EditValue = f.SelectedItem;
            }
        }
Ejemplo n.º 2
0
        private void buttonEditDepartment_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseDepartmentForm f = new ChooseDepartmentForm();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                (sender as ButtonEdit).EditValue = f.SelectedItem;
                IList <Model.InvoicePODetail> podetails = this.invoicePODetailManager.Select(f.SelectedItem as Model.Department);
                this.invoice.Podetails = podetails;
                this.bindingSourcePODetail.DataSource = podetails;
            }
        }