private void MenuItem1_Click(object sender, EventArgs e)
        {
            FrmReceiptsDespatchs _despatch = new FrmReceiptsDespatchs((int)Lib.DocumentType.Payment, (Document)(((MenuItem)sender).Tag), this)
            {
                FormMode = Lib.FormMode.New
            };

            _despatch.Show();
        }
        private void SelectedRow_DoubleClick(object sender, EventArgs e)
        {
            var selected = DGVNewReceiptDespatch.SelectedRows[0];

            if (selected != null)
            {
                FrmReceiptsDespatchs EditDocument = new FrmReceiptsDespatchs((Document)((DataGridViewRow)selected).DataBoundItem, this);
                EditDocument.Show();
            }
        }
        private void BtnNewReceipt_Click(object sender, EventArgs e)
        {
            FrmReceiptsDespatchs _receipt = new FrmReceiptsDespatchs((int)Lib.DocumentType.Receipt, this);

            _receipt.Show();
        }
        private void BtnNewDespatch_Click(object sender, EventArgs e)
        {
            FrmReceiptsDespatchs _despatch = new FrmReceiptsDespatchs((int)Lib.DocumentType.Despatch, this);

            _despatch.Show();
        }