コード例 #1
0
        private async Task LoadFloorTypes()
        {
            await Task.Run(WaitForFloorTypes);

            ComboBox_ColType.Items.Clear();
            ComboBox_ColType.SuspendLayout();
            ComboBox_ColType.Items.AddRange(terrainTypesComboItems.ToArray());
            ComboBox_ColType.ResumeLayout();
        }
コード例 #2
0
        private void LoadN64TextureFormatTypes()
        {
            ComboBox_ColType.SuspendLayout();
            ComboBox_ColType.Items.Clear();
            var eType = typeof(N64Codec);
            var names = Enum.GetNames(eType);

            int[] values = (int[])Enum.GetValues(eType);
            for (int i = 0, loopTo = names.Count() - 2; i <= loopTo; i++)
            {
                var item = new ComboItem();
                item.Text = names[i];
                item.Tag  = N64Graphics.CodecString((N64Codec)values[i]);
                ComboBox_ColType.Items.Add(item);
            }

            ComboBox_ColType.ResumeLayout();
        }