예제 #1
0
 /// <summary>
 /// 删除 ListFamily
 /// </summary>
 private void DeleteListFamily()
 {
     if (MessageBox.Show(string.Format("确定要删除这个列表吗?它里面的项目都会被删除哟~\n列表标题:{0}", selectedListFamily.Title), "三思而后行", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation) == MessageBoxResult.OK)
     {
         ListFamily.DeleteListFamily(selectedListFamily);
         ReadListFamiles();
         ReadListChildren();
     }
 }
예제 #2
0
 private void btnDeleteListFamily_Click(object sender, RoutedEventArgs e)
 {
     switch (MessageBox.Show(string.Format("确定要删除这个列表吗?它里面的项目都会被删除哟~\n列表标题:{0}", selectedListFamily.Title), "三思而后行", MessageBoxButton.OKCancel, MessageBoxImage.Exclamation))
     {
     case MessageBoxResult.OK:
         ListFamily.DeleteListFamily(selectedListFamily);
         ReadListFamiles();
         ReadListChildren();
         break;
     }
 }