public void EventContent(object sender, RoutedEventArgs e)
 {
     moinf = new MoreInf();
     string[] Table_Str = { "ZbId", "Zbname", "Zbspec", "Zbkind", "Zbunit" };
     if (EquipmentTable.dataGrid.SelectedIndex != -1)
     {
         moinf.SetValues(EquipmentTable.Getdt(), EquipmentTable.dataGrid.SelectedIndex, EquipmentTable.Rows, Table_Str, Str, 5);
         moinf.Show();
     }
     else
     {
         MessageBox.Show("当前未选中任何行!");
     }
 }
 public void EventContent(object sender, RoutedEventArgs e)
 {
     moinf = new MoreInf();
     string[] Table_Str = { "LogId", "LogDate", "LogTime", "LogType", "Title", "UserName", "Body" };
     if (LoggingTable.dataGrid.SelectedIndex != -1)
     {
         moinf.SetValues(LoggingTable.Getdt(), LoggingTable.dataGrid.SelectedIndex, LoggingTable.Rows, Table_Str, Str, 7);
         moinf.Show();
     }
     else
     {
         MessageBox.Show("当前未选中任何行!");
     }
 }