Inheritance: ATMLCommonLibrary.forms.ATMLForm
        private void LegalDocumentListControl_OnAdd()
        {
            var document = new Document();
            var form     = new LegalDocumentForm(document);

            if (DialogResult.OK == form.ShowDialog())
            {
                document = form.LegalDocument;
                var lvi = new ListViewItem();
                lvi.SubItems[0].Text = Enum.GetName(typeof(HardwareItemDescriptionLegalDocumentsItemsChoiceType),
                                                    document.LegalDocumentType);
                lvi.SubItems.Add(document.name);
                lvi.SubItems.Add(document.version);
                lvi.Tag = document;
                lvList.Items.Add(lvi);
            }
        }
 private void LegalDocumentListControl_OnEdit()
 {
     if (HasSelected)
     {
         var document = SelectedObject as Document;
         if (document != null)
         {
             var form = new LegalDocumentForm(document);
             if (DialogResult.OK == form.ShowDialog())
             {
                 document = form.LegalDocument;
                 ListViewItem lvi = SelectedListViewItem;
                 lvi.SubItems[0].Text =
                     Enum.GetName(typeof(HardwareItemDescriptionLegalDocumentsItemsChoiceType),
                                  document.LegalDocumentType);
                 lvi.SubItems[1].Text = document.name;
                 lvi.SubItems[2].Text = document.version;
                 lvi.Tag = document;
             }
         }
     }
 }
 private void LegalDocumentListControl_OnEdit()
 {
     if (HasSelected)
     {
         var document = SelectedObject as Document;
         if (document != null)
         {
             var form = new LegalDocumentForm(document);
             if (DialogResult.OK == form.ShowDialog())
             {
                 document = form.LegalDocument;
                 ListViewItem lvi = SelectedListViewItem;
                 lvi.SubItems[0].Text =
                     Enum.GetName(typeof (HardwareItemDescriptionLegalDocumentsItemsChoiceType),
                         document.LegalDocumentType);
                 lvi.SubItems[1].Text = document.name;
                 lvi.SubItems[2].Text = document.version;
                 lvi.Tag = document;
             }
         }
     }
 }
 private void LegalDocumentListControl_OnAdd()
 {
     var document = new Document();
     var form = new LegalDocumentForm(document);
     if (DialogResult.OK == form.ShowDialog())
     {
         document = form.LegalDocument;
         var lvi = new ListViewItem();
         lvi.SubItems[0].Text = Enum.GetName(typeof (HardwareItemDescriptionLegalDocumentsItemsChoiceType),
             document.LegalDocumentType);
         lvi.SubItems.Add(document.name);
         lvi.SubItems.Add(document.version);
         lvi.Tag = document;
         lvList.Items.Add(lvi);
     }
 }