private void BtnNew_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         frm_tarife_daryaft frmTd = new frm_tarife_daryaft();
         frmTd.ShowDialog();
         SetDataGrid();
     }
     catch
     {
         throw;
     }
 }
        private void BtnEdit_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (grdRecive.SelectedValue == null)
                {
                    throw new Exception(Localize.ex_no_record_selected);
                }

                Guid id = (grdRecive.SelectedValue as dynamic).ID;
                var  frm_tarife_daryaft = new frm_tarife_daryaft(id);
                frm_tarife_daryaft.ShowDialog();
                SetDataGrid();
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }