Esempio n. 1
0
 private void dg_searchClient_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (!string.IsNullOrEmpty(ButtonClicked.invoiceButtonClick))
     {
         PurchaseInvoice PI = new PurchaseInvoice();
         PI.txt_InvSC.Text = this.dg_searchClient.CurrentRow.Cells[0].Value.ToString();
         PI.txt_InvMS.Text = this.dg_searchClient.CurrentRow.Cells[1].Value.ToString();
         this.Close();
         ButtonClicked.invoiceButtonClick       = String.Empty;
         ButtonClicked.purchaseOrderButtonClick = String.Empty;
     }
     if (!string.IsNullOrEmpty(ButtonClicked.purchaseOrderButtonClick))
     {
         PurchaseOrder po = new PurchaseOrder();
         po.txt_POSC.Text = this.dg_searchClient.CurrentRow.Cells[0].Value.ToString();
         po.txt_POMS.Text = this.dg_searchClient.CurrentRow.Cells[1].Value.ToString();
         this.Close();
         ButtonClicked.invoiceButtonClick       = String.Empty;
         ButtonClicked.purchaseOrderButtonClick = String.Empty;
     }
     if (!string.IsNullOrEmpty(ButtonClicked.saleOrderButtonClick))
     {
         SaleOrder saleOrder = new SaleOrder();
         saleOrder.txt_SaleOrderSC.Text = this.dg_searchClient.CurrentRow.Cells[0].Value.ToString();
         saleOrder.txt_SaleOrderMS.Text = this.dg_searchClient.CurrentRow.Cells[1].Value.ToString();
         this.Close();
         ButtonClicked.saleOrderButtonClick = String.Empty;
     }
     if (!string.IsNullOrEmpty(ButtonClicked.saleInvoiceButtonClick))
     {
         SaleInvoice saleInvoice = new SaleInvoice();
         saleInvoice.txt_InvoiceSC.Text = this.dg_searchClient.CurrentRow.Cells[0].Value.ToString();
         saleInvoice.txt_InvoiceMS.Text = this.dg_searchClient.CurrentRow.Cells[1].Value.ToString();
         this.Close();
         ButtonClicked.saleInvoiceButtonClick = String.Empty;
     }
 }
Esempio n. 2
0
        private void saleOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaleOrder saleOrder = new SaleOrder();

            saleOrder.ShowDialog();
        }