/// <summary> /// 发布保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSave_Click(object sender, RoutedEventArgs e) { if (!_IsEdit) { if (Playlist.AddPlaylist()) { MessageBox.Show("发布成功!"); this.Close(); } } else { if (Playlist.UpdatePlaylist()) { MessageBox.Show("更新成功!"); this.Close(); } } }