private void CreateB_Click(object sender, RoutedEventArgs e)
        {
            Page.Playlist.Playlist.PlaylistData             pd    = new Page.Playlist.Playlist.PlaylistData();
            List <Page.Playlist.Playlist.PlaylistData.Path> Paths = new List <Page.Playlist.Playlist.PlaylistData.Path>();

            foreach (ListItem li in PlaylistItems.Items)
            {
                if (li.DataType == typeof(Page.Playlist.Playlist.PlaylistData.Path))
                {
                    Paths.Add((Page.Playlist.Playlist.PlaylistData.Path)li.Data);
                }
            }

            pd.Paths  = Paths.ToArray();
            pd.Sticky = Utils.Converter.BrushToString(new SolidColorBrush(StickyColorPicker.SelectedColor));
            pd.Title  = NameT.Text;

            switch (Mode)
            {
            case DialogMode.Create:
                Page.Playlist.Playlist.Write(Utils.Config.Setting.Paths.Playlist + FileName, pd);
                PlaylistCreated?.Invoke(this, new Utils.Classes.PlaylistEventArgs(Utils.Config.Setting.Paths.Playlist + FileName, pd));
                break;

            case DialogMode.Edit:
                Page.Playlist.Playlist.Write(EdFilePath, pd);
                PlaylistEdited?.Invoke(this, new Utils.Classes.PlaylistEventArgs(EdFilePath, pd));
                break;
            }

            Close();
        }
        public void LoadPlaylist(Page.Playlist.Playlist.PlaylistData PlaylistData, string FilePath)
        {
            EdFilePath = FilePath;
            PlaylistItems.Items.Clear();

            TitleItem.Sticky = Utils.Converter.StringToBrush(PlaylistData.Sticky);
            TitleItem.Label  = PlaylistData.Title;
            PlaylistItems.Items.Add(TitleItem);

            StickyColorPicker.SelectedColor = Utils.Converter.StringToBrush(PlaylistData.Sticky).Color;
            NameT.Text = PlaylistData.Title;

            FileT.Text      = null;
            DirectoryT.Text = null;

            for (int i = 0; PlaylistData.Paths.Length > i; i++)
            {
                PlaylistItems.Items.Add(CreateSubItem(PlaylistData.Paths[i]));
            }
        }