Пример #1
0
 private void dgvMemberMatching_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         Model.MonthlySubsApprovalStatus d = dgvMemberMatching.SelectedItem as Model.MonthlySubsApprovalStatus;
         if (d != null)
         {
             frmMonthlySubscriptionMembers f = new frmMonthlySubscriptionMembers(dataMS.Id);
             f.cbxApprovalStatus.Text = d.Description != "Total" ? d.Description : "";
             f.Search();
             f.ShowDialog();
             LoadMonthlySubsciption(data.SelecctedDate);
         }
     }
     catch (Exception ex) { }
 }
 private void DgvBank_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         Model.MonthlySubsBank d = dgvBank.SelectedItem as Model.MonthlySubsBank;
         if (data != null)
         {
             if (data.MonthlySubscription.Id != 0)
             {
                 frmMonthlySubscriptionMembers f = new frmMonthlySubscriptionMembers(data.MonthlySubscription.Id);
                 f.cbxBank.Text = d.BankName;
                 f.Search();
                 f.ShowDialog();
             }
         }
     }
     catch (Exception ex) { }
 }