Beispiel #1
0
        private void buttonEditCompany_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseSupplier f = new ChooseSupplier();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                (sender as ButtonEdit).EditValue = f.SelectedItem;
            }
        }
Beispiel #2
0
        private void buttonEditCompany_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseSupplier f = new ChooseSupplier();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                (sender as ButtonEdit).EditValue = f.SelectedItem;
                //this.invoice.Details = this.invoice01Manager.Select("Fk", (f.SelectedItem as Model.Company).CompanyId);
                //this.bindingSource1.DataSource = this.invoice.Details;
                //this.textEditPay.EditValue = (f.SelectedItem as Model.Company).CompanyP1;
            }
        }
Beispiel #3
0
        private void buttonEditCompany_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            ChooseSupplier f = new ChooseSupplier();

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                (sender as ButtonEdit).EditValue = f.SelectedItem;
                //IList<Model.InvoiceJRDetail> jrdetails = this.invoiceJRDetailManager.Select(f.SelectedItem as Model.Company);
                //this.invoice.Jrdetails = jrdetails;
                //this.bindingSource1.DataSource = jrdetails;
            }
        }