HuNan_DM/DM_Weight/Views/StockListWindow.xaml.cs

63 lines
1.9 KiB
C#

using DM_Weight.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using static System.Net.Mime.MediaTypeNames;
namespace DM_Weight.Views
{
/// <summary>
/// StockListWindow.xaml 的交互逻辑
/// </summary>
public partial class StockListWindow : UserControl
{
//StockListWindowViewModel vms;
public StockListWindow()
{
InitializeComponent();
}
///// <summary>
///// 选中行事件
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
//{
// if (dgv1.SelectedIndex >= 0)
// {
// TextBlock txt = dgv1.Columns[0].GetCellContent(dgv1.Items[dgv1.SelectedIndex]) as TextBlock;
// if (txt != null)
// {
// vms.drugId = txt.Text;
// }
// }
//}
//private void UserControl_Loaded(object sender, RoutedEventArgs e)
//{
// vms = StockListWindowViewModel.vm;
//}
//private void Item_GotFocus(object sender, RoutedEventArgs e)
//{
// var item = (DataGridRow)sender;
// FrameworkElement objElement = dgv1.Columns[0].GetCellContent(item);
// if (objElement != null)
// {
// TextBlock objChk = (TextBlock)objElement;
// vms.drugId = objChk.Text;
// }
//}
}
}