public MainScreenCharacter(MainMenu menu, Classes.Character c, List <CharacterClass> cClass, bool delete)
        {
            this.menu = menu;
            character = c;
            InitializeComponent();

            if (c.GetImage().Count() > 1)
            {
                using (MemoryStream ms = new MemoryStream(c.GetImage()))
                {
                    BitmapDecoder decoder = BitmapDecoder.Create(ms,
                                                                 BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.OnLoad);
                    image.Source = decoder.Frames[0];
                }
            }


            lblName.Content = c.GetName();

            foreach (CharacterClass cl in cClass)
            {
                if (cl.GetId() == c.GetClass())
                {
                    lblClass.Content = cl.GetName();
                }
            }
            lblLevel.Content += c.GetLevel().ToString();

            if (!delete)
            {
                btnDelete.Visibility = Visibility.Hidden;
            }
        }