private void buttonEditPro1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     Invoices.ChooseProductForm form = new Invoices.ChooseProductForm();
     if (form.ShowDialog(this) == DialogResult.OK)
     {
         this.buttonEditPro1.EditValue = form.SelectedItem as Model.Product;
     }
     form.Dispose();
     GC.Collect();
 }
Пример #2
0
 private void btn_Product_Click(object sender, EventArgs e)
 {
     Invoices.ChooseProductForm form = new Invoices.ChooseProductForm();
     if (form.ShowDialog(this) == DialogResult.OK)
     {
         this.btn_Product.EditValue = form.SelectedItem as Model.Product;
     }
     form.Dispose();
     GC.Collect();
 }