Inheritance: ATMLCommonLibrary.forms.ATMLForm
Beispiel #1
0
        void TestStationDescriptionInstrumentListControl_InitializeForm(Form form)
        {
            TestStationDescriptionInstrumentForm instrForm = form as TestStationDescriptionInstrumentForm;

            if (instrForm != null)
            {
                foreach (ListViewItem lvi in Items)
                {
                    TestStationDescriptionInstrument instr = lvi.Tag as TestStationDescriptionInstrument;
                    if (instr != null)
                    {
                        DocumentReference docRef = instr.Item as DocumentReference;
                        if (docRef != null)
                        {
                            instrForm.AddSelectedDocumentId(docRef.uuid);
                        }
                    }
                }
            }
        }