예제 #1
0
 public EditJurisdictionSpecificSubfileDialog(MainForm parent, AAMVAJurisdiction jurisdiction, MainForm.SubfileSkeleton subfileSkeleton, int subfileIndex, EditSubfileDialog.EditMode mode)
 {
     InitializeComponent();
     this.Text          = "Edit Subfile - Jurisdiction Specific";
     _currentChar       = ASCII_A;
     _parent            = parent;
     _jurisdiction      = jurisdiction;
     _subfileSkeleton   = subfileSkeleton;
     _subfileIndex      = subfileIndex;
     _closeAction       = EditSubfileDialog.CloseAction.Cancel;
     _mode              = mode;
     _btnSubmit.Enabled = false;
     if (subfileSkeleton.DataElements.Keys.Count > 0)
     {
         RepopulateDataElements();
     }
 }
예제 #2
0
 public EditSubfileDialog(MainForm parent, AAMVAJurisdiction jurisdiction, MainForm.SubfileSkeleton subfileSkeleton, int subfileIndex, EditMode mode)
 {
     InitializeComponent();
     this.Text        = "Edit Subfile - " + subfileSkeleton.SubfileType.ToString();
     _subfileSkeleton = subfileSkeleton;
     _mode            = mode;
     _parent          = parent;
     _subfileIndex    = subfileIndex;
     _jurisdiction    = jurisdiction;
     _closeAction     = CloseAction.Cancel;
     AddDataElementRows(MandatoryDataElements, 0);
     AddDataElementRows(OptionalDataElements, 1);
     if (subfileSkeleton.DataElements.Keys.Count > 0)
     {
         RepopulateDataElements();
     }
 }