Esempio n. 1
0
 private void FillRecordApxView(PayReesterRecord payReesterRecord)
 {
     this.UnvisibleReesterRecordApxViews();
     if (payReesterRecord != PayReesterRecord.Null)
     {
         FasetItem recordStorageFormat;
         try
         {
             recordStorageFormat = payReesterRecord.GetReester().GetPaymentSystem().GetRecordStorageFormat();
         }
         catch (System.Exception exception)
         {
             throw new System.ApplicationException("Не найден формат хранения записи реестра для платежной системы.", exception);
         }
         string name = recordStorageFormat.Name;
         if (name == null)
         {
             goto Label_0192;
         }
         if (name != "Значения через запятую")
         {
             if (name == "Значения через двоеточие")
             {
                 this.tabReesterRecordApx.SuspendLayout();
                 this.tabReesterRecordApx.set_TabIndex(this.tabReesterRecordApx.Controls.IndexOf(this.payReesterRecordApxView));
                 this.payReesterRecordApxView.set_Enabled(true);
                 this.payReesterRecordApxView.set_Visible(true);
                 this.payReesterRecordApxView.Fill(payReesterRecord);
                 this.tabReesterRecordApx.ResumeLayout();
                 return;
             }
             if (name == "Значения через точку с запятой")
             {
                 return;
             }
             if (name == "\"Поле=Значение\" через точку с запятой")
             {
                 this.tabReesterRecordApx.SuspendLayout();
                 this.tabReesterRecordApx.set_TabIndex(this.tabReesterRecordApx.Controls.IndexOf(this.payReesterRecordApxView));
                 this.payReesterRecordApxView.set_Enabled(true);
                 this.payReesterRecordApxView.set_Visible(true);
                 this.payReesterRecordApxView.Fill(payReesterRecord);
                 this.tabReesterRecordApx.ResumeLayout();
                 return;
             }
             goto Label_0192;
         }
         this.tabReesterRecordApx.SuspendLayout();
         this.tabReesterRecordApx.set_TabIndex(this.tabReesterRecordApx.Controls.IndexOf(this.notePayRelationsView));
         this.notePayRelationsView.set_Enabled(true);
         this.notePayRelationsView.set_Visible(true);
         this.notePayRelationsView.Fill(payReesterRecord);
         this.tabReesterRecordApx.ResumeLayout();
     }
     return;
     Label_0192:
     throw new System.ApplicationException("Неизвестный формат хранения записи реестра.");
 }
Esempio n. 2
0
 private void FillRecordApxView(PayReesterRecord payReesterRecord)
 {
     this.UnvisibleReesterRecordApxViews();
     if (payReesterRecord != PayReesterRecord.Null)
     {
         try
         {
             FasetItem recordStorageFormat = payReesterRecord.GetReester().GetPaymentSystem().GetRecordStorageFormat();
             if (recordStorageFormat.Name == "Значения через запятую")
             {
                 this.tabReesterRecordApx.SuspendLayout();
                 this.tabReesterRecordApx.set_TabIndex(this.tabReesterRecordApx.Controls.IndexOf(this.notePayRelationsView));
                 this.notePayRelationsView.set_Enabled(true);
                 this.notePayRelationsView.set_Visible(true);
                 this.notePayRelationsView.Fill(payReesterRecord);
                 this.tabReesterRecordApx.ResumeLayout();
             }
             if (recordStorageFormat.Name == "\"Поле=Значение\" через точку с запятой")
             {
                 this.tabReesterRecordApx.SuspendLayout();
                 this.tabReesterRecordApx.set_TabIndex(this.tabReesterRecordApx.Controls.IndexOf(this.payReesterRecordApxView));
                 this.payReesterRecordApxView.set_Enabled(true);
                 this.payReesterRecordApxView.set_Visible(true);
                 this.payReesterRecordApxView.Fill(payReesterRecord);
                 this.tabReesterRecordApx.ResumeLayout();
             }
         }
         catch (System.Exception)
         {
             Messages.ShowMessage("Не найден формат хранения записи реестра для платежной системы");
         }
     }
 }