private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            DataGridView dgv = sender as DataGridView;

            if (dgv != null && dgv.SelectedRows.Count > 0)
            {
                DataGridViewRow row = dgv.SelectedRows[0];
                if (row != null || row.Cells[0].Value != null)
                {
                    GIBInterface.SendInvoiceData sendInvoiceData = (GIBInterface.SendInvoiceData)row.Tag;

                    FrmInvoiceViewer frm = new FrmInvoiceViewer();
                    frm.EFatura = EFatura;
                    frm.Invoice = GIBInterface.UBLTR.InvoiceType.Create(sendInvoiceData.InvoiceXML);
                    if (frm.ShowDialog() == DialogResult.OK)
                    {
                    }
                }
            }
        }
        private void btnDurumSorgula_Click(object sender, EventArgs e)
        {
            var dgv = dataGridView1;

            if (dgv != null && dgv.SelectedRows.Count > 0)
            {
                List <GIBInterface.QueryStatusParameters> val = new List <GIBInterface.QueryStatusParameters>();
                foreach (DataGridViewRow item in dgv.SelectedRows)
                {
                    GIBInterface.SendInvoiceData sendInvoiceData = (GIBInterface.SendInvoiceData)item.Tag;

                    GIBInterface.QueryStatusParameters rr = new GIBInterface.QueryStatusParameters();

                    rr.InvoiceUUID = new Guid(sendInvoiceData.ETN);
                    rr.RecordId    = sendInvoiceData.Id;

                    val.Add(rr);
                }

                EFatura.FaturaDurumSorgula(val);
            }
        }