/// <summary> /// 弹出设备详情 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void equdatagrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { EquipmentDetailDialog dialog = new EquipmentDetailDialog(SelectedEquipment); dialog.IsEnabled = false; dialog.WindowTitle = "设备-详细信息"; dialog.ShowDialog(this); }
/// <summary> /// 手工录入 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_ManualRegister_Click(object sender, RoutedEventArgs e) { if (activityPlaceInfo != null && string.IsNullOrEmpty(activityPlaceInfo.Guid) == false) { ActivityEquipmentInfo equapply = new ActivityEquipmentInfo(); equapply.PlaceGuid = activityPlaceInfo.Guid; EquipmentDetailDialog dialog = new EquipmentDetailDialog(equapply); dialog.WindowTitle = "设备-手工登记"; dialog.RefreshEquipmentSource += Dialog_RefreshEquipmentSource; dialog.ShowDialog(this); } else { MessageBox.Show("请选择设备使用地点!", "提示", MessageBoxButton.OK); } }