private void repositoryItemCheckEdityasref_CheckedChanged(object sender, EventArgs e)
        {
            CheckEdit ce = (CheckEdit)sender;
            
            DataSources.dsRetirementCenter.TBLMashatFastEditRow row =
                (DataSources.dsRetirementCenter.TBLMashatFastEditRow)((DataRowView)gridViewData.GetRow(gridViewData.FocusedRowHandle)).Row;

            row.yasref = ce.Checked;
            tBLMashatFastEditBindingSource.EndEdit();

            if ((bool)row["yasref", DataRowVersion.Current] != (bool)row["yasref", DataRowVersion.Original])
            {
                TBLNoSarfWarsaDlg dlg = new TBLNoSarfWarsaDlg();
                if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    row.halarem = dlg.tbhalarem.EditValue.ToString();
                    row.datehala = dlg.dedatehala.DateTime;
                }
            }
        }
        private void ceyasref_CheckedChanged(object sender, EventArgs e)
        {
            try
            {
                if ((bool)_TBLWarasa.Rows[0]["yasref", DataRowVersion.Current] == ceyasref.Checked)
                {
                    _TBLNoSarfWarsa.Clear();
                    return;
                }
            }
            catch { return; }

            if (ceyasref.Checked)
            {
                if (_TBLWarasa.Rows[0].RowState == DataRowState.Added)
                    return;
            }
            DataSources.dsRetirementCenter.TBLNoSarfWarsaRow row = _TBLNoSarfWarsa.NewTBLNoSarfWarsaRow();
            row.PersonId = -1; row.datehala = DateTime.Now; row.halarem = string.Empty; row.yasref = ceyasref.Checked;
            TBLNoSarfWarsaDlg dlg = new TBLNoSarfWarsaDlg(row);

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                _TBLNoSarfWarsa.AddTBLNoSarfWarsaRow(row);
            else
                ceyasref.Checked = !ceyasref.Checked;
        }