ATMLEquipmentLibrary.controls.EquipmentLibraryControl.lvInstruments_OnAdd C# (CSharp) Method

lvInstruments_OnAdd() private method

private lvInstruments_OnAdd ( ) : void
return void
        private void lvInstruments_OnAdd()
        {
            var form = new InstrumentForm();
            var instrumentDescription = new InstrumentDescription();
            form.InstrumentDescription = instrumentDescription;
            if (DialogResult.OK == form.ShowDialog())
            {
                instrumentDescription = form.InstrumentDescription;
                var document = new Document();
                SaveInstrumentDescriptionDocument( instrumentDescription, document, BASEBean.eDataState.DS_ADD );
                AddDocumentToInstrumentList( document );
                LoadInstrumentPreview();
            }
        }