Exemple #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;
            }
        }
Exemple #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;
            }
        }