コード例 #1
0
 /// <summary>
 /// 跳转导出
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExprot_Click(object sender, RoutedEventArgs e)
 {
     if (otmList.Count > 0)
     {
         ExportWindow ew = new ExportWindow(otmList);
         ew.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         ew.Owner         = this;
         ew.ShowInTaskbar = false;
         ew.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有需要导出的数据");
     }
 }
コード例 #2
0
 /// <summary>
 /// 跳转导出
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExprot_Click(object sender, RoutedEventArgs e)
 {
     if(otmList.Count>0)
     {
         ExportWindow ew = new ExportWindow(otmList);
         ew.WindowStartupLocation = WindowStartupLocation.CenterScreen;                
         ew.Owner = this;
         ew.ShowInTaskbar = false;
         ew.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有需要导出的数据");
     }
 }