ATML1671Reader.controls.TestStationReferenceControl.testStationListControl_OnFind C# (CSharp) Метод

testStationListControl_OnFind() приватный Метод

private testStationListControl_OnFind ( ) : void
Результат void
        private void testStationListControl_OnFind()
        {
            var form = new ATMLLibraryForm(typeof(TestStationListControl));
            if (DialogResult.OK == form.ShowDialog())
            {
                var testStation = form.SelectedObject as TestStationDescription11;
                Document document = DocumentManager.GetDocument( testStation.uuid );
                if (document != null)
                {
                    var reference = new TestConfigurationTestEquipmentItem();
                    var documentReference = new DocumentReference();
                    documentReference.ContentType = ATMLContext.CONTEXT_TYPE_XML;
                    documentReference.DocumentContent = Encoding.UTF8.GetBytes( testStation.Serialize() );
                    documentReference.DocumentName = document.name;
                    documentReference.DocumentType = document.DocumentType;
                    documentReference.ID = testStation.Identification.ModelName;
                    documentReference.uuid = testStation.uuid;
                    reference.Item = documentReference;
                    testEquipmentListControl.AddListViewObject( reference );
                }
            }
        }