private void BtnSave_Click(object sender, EventArgs e)
        {
            if (BasicValidationAddress() == false)
            {
                return;
            }

            address.ClientId        = this.clientId;
            address.ClientAddressId = this.addressId;
            address.City            = new CityModel
            {
                CityId   = 0,
                CityName = comboCity.Text
            };
            address.County = new CountyModel
            {
                CountyId   = 0,
                CountyName = comboDistrict.Text
            };
            address.StreetName = txtStreet.Text;
            address.StreetNo   = txtNumber.Text;
            address.status     = this.status;
            if (this.unique == "")
            {
                address.unique = address.RandomString(8);
            }
            else
            {
                address.unique = this.unique;
            }
            isAdded = false;
            cAddForm.UpdateDataGridAddress(address, this);
            cAddForm.Show();
            this.Hide();
        }
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            ClientRowForm paf = new ClientRowForm(0, this, 0);

            paf.GetInitialValue();
            FormState.PreviousPage = this;
            paf.Show();
            this.Hide();
        }
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            if (dataPartners.Rows.Count != 0)
            {
                int i          = dataPartners.SelectedCells[0].RowIndex;
                int selectedId = Convert.ToInt32(dataPartners.Rows[i].Cells[0].Value.ToString());

                ClientRowForm caf = new ClientRowForm(selectedId, this, 1);
                caf.PopulateForm("", "", "", selectedId);
                caf.GetInitialValue();
                FormState.PreviousPage = this;
                caf.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Nu se poate edita niciun client deoarece nu exista vreun client", "Atentie", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
        }