Esempio n. 1
0
        private void InitializeListBoxCodingType()
        {
            listBoxCodingType.DataSource = DataVisualizationService.GetCodingAndCrossingViews()
                                           .Select(item => item.ViewsCoding)
                                           .Distinct()
                                           .ToList();

            listBoxCodingType.SelectedIndex = 0;
        }
Esempio n. 2
0
        private void listBoxCodingType_SelectedIndexChanged(object sender, EventArgs e)
        {
            listBoxCrossingType.DataSource = DataVisualizationService.GetCodingAndCrossingViews()
                                             .Where(item => (listBoxCodingType.SelectedItem.ToString() == item.ViewsCoding))
                                             .Select(item => item.ViewsСrossing)
                                             .ToList();

            switch (listBoxCodingType.SelectedIndex)
            {
            case 0: checkBoxMeshSeal.Enabled = false; Vectors.CodingType = Coding.Real; textBoxBitsCount.Enabled = false; break;

            case 1: checkBoxMeshSeal.Enabled = true; Vectors.CodingType = Coding.Integer; textBoxBitsCount.Enabled = true; break;
            }
        }