public void doClose(object param)
        {
            ucNewPlaylist np = param as ucNewPlaylist;

            text = "";
            np.Close();
        }
 public void doCreate(object param)
 {
     if (text != "")
     {
         ucNewPlaylist np = param as ucNewPlaylist;
         np.Close();
     }
 }
Exemple #3
0
        public void doCreateList(object param)
        {
            ucNewPlaylistModel npm    = new ucNewPlaylistModel();
            ucNewPlaylist      window = new ucNewPlaylist();

            window.DataContext = npm;
            window.Title       = "Create a New Playlist";
            window.ShowDialog();
            db.addPlaylist(npm.text);
            Actualizedico();
        }
 public void doCreateList(object param)
 {
     ucNewPlaylistModel npm = new ucNewPlaylistModel();
     ucNewPlaylist window = new ucNewPlaylist();
     window.DataContext = npm;
     window.Title = "Create a New Playlist";
     window.ShowDialog();
     db.addPlaylist(npm.text);
     Actualizedico();
 }