Beispiel #1
0
        private void LoadDepth(ICapWrapper <PixelType> cap)
        {
            var list = cap.GetValues().ToList();

            comboDepth.DataSource = list;
            var cur = cap.GetCurrent();

            if (list.Contains(cur))
            {
                comboDepth.SelectedItem = cur;
            }
            var labelTest = cap.GetLabel();

            if (!string.IsNullOrEmpty(labelTest))
            {
                groupDepth.Text = labelTest;
            }
        }
Beispiel #2
0
        private void LoadPaperSize(ICapWrapper <SupportedSize> cap)
        {
            var list = cap.GetValues().ToList();

            comboSize.DataSource = list;
            var cur = cap.GetCurrent();

            if (list.Contains(cur))
            {
                comboSize.SelectedItem = cur;
            }
            var labelTest = cap.GetLabel();

            if (!string.IsNullOrEmpty(labelTest))
            {
                groupSize.Text = labelTest;
            }
        }