/// <summary>
 /// Changing the color displayed in he panel (and also the texture of the soundBar)
 /// </summary>
 private void loadColor(ThemeOpenGL tempTheme)
 {
     jointDetColor.BackColor   = System.Drawing.Color.FromArgb((byte)(tempTheme.TJC[3] * 255), (byte)(tempTheme.TJC[0] * 255), (byte)(tempTheme.TJC[1] * 255), (byte)(tempTheme.TJC[2] * 255));
     jointInnColor.BackColor   = System.Drawing.Color.FromArgb((byte)(tempTheme.IJC[3] * 255), (byte)(tempTheme.IJC[0] * 255), (byte)(tempTheme.IJC[1] * 255), (byte)(tempTheme.IJC[2] * 255));
     bonesDetColor.BackColor   = System.Drawing.Color.FromArgb((byte)(tempTheme.TBC[3] * 255), (byte)(tempTheme.TBC[0] * 255), (byte)(tempTheme.TBC[1] * 255), (byte)(tempTheme.TBC[2] * 255));
     bonesInnColor.BackColor   = System.Drawing.Color.FromArgb((byte)(tempTheme.IBC[3] * 255), (byte)(tempTheme.IBC[0] * 255), (byte)(tempTheme.IBC[1] * 255), (byte)(tempTheme.IBC[2] * 255));
     backgroundColor.BackColor = tempTheme.BC;
     feedbackColor.BackColor   = tempTheme.PFC;
     soundbarColor.Image       = new Bitmap(Bitmap.FromFile(@"..\..\View\Icons\soundTexture\" + tempTheme.SN));
 }
        public ChoiceTheme()
        {
            InitializeComponent();
            this.DataContext = this;
            //Ordering the themes by alphabetical order
            var temp = from element in DrawingSheetAvatarViewModel.Get().getThemeList
                       orderby element.Name
                       select element;

            foreach (ThemeOpenGL t in temp)
            {
                comboBox.Items.Add(t.Name);
            }
            ThemeOpenGL tempTheme = DrawingSheetAvatarViewModel.Get().actualTheme;

            comboBox.SelectedIndex = comboBox.Items.IndexOf(tempTheme.Name);

            this.ResizeMode     = ResizeMode.NoResize;
            jointDetPanel.Width = jointInnPanel.Width = bonesDetPanel.Width = bonesInnPanel.Width = (this.Width - 15) / 2; // Real size of the inner window
            soundbarColor.Width = 300;
        }