private void btnNewContrator_Click(object sender, EventArgs e)
        {
            var form = new AddContractor(0);

            if (form.ShowDialog(this) == DialogResult.OK)
            {
            }
        }
        private void NewContractor_Click(object sender, EventArgs e)
        {
            var form = new AddContractor(0);

            if (form.ShowDialog() == DialogResult.OK)
            {
                da = new DataAccess();
                LoadContractorGrid();

                //todo: noting
            }
        }
        private void CustomerGrid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int customerId = 0;

            if (CustomerGrid.SelectedRows.Count > 0)
            {
                var row = CustomerGrid.SelectedRows[0];
                customerId = ((dynamic)row.DataBoundItem).Id;
            }

            var form = new AddContractor(customerId);

            form.EditContractor();
            if (form.ShowDialog() == DialogResult.OK)
            {
                da = new DataAccess();
                LoadContractorGrid();
            }
        }