Пример #1
0
        private void inputWorkerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Invoice_DetailDTO dtoDetail = _obj.Invoice_Detail.FirstOrDefault(x => x.Service_Name == dgResult.Rows[RowIndex].Cells["Service_Name"].Value.ToString());

            FrmInvoiceDetails form = new FrmInvoiceDetails(dtoDetail.Worker_detail);

            form.ShowDialog();
        }
Пример #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     if (PerformValidation())
     {
         txtCustomer.Enabled = false;
         AddTolist();
         FrmInvoiceDetails form = new FrmInvoiceDetails(this.Dto);
         form.ShowDialog();
         RefreshDG();
     }
 }