HuNan_DM_MultiBatch/DM_Weight/Views/DrawerAddDrugWindow.xaml.cs

47 lines
1.6 KiB
C#

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;
namespace DM_Weight.Views
{
/// <summary>
/// DrawerAddDrugWindow.xaml 的交互逻辑
/// </summary>
public partial class DrawerAddDrugWindow : UserControl
{
public DrawerAddDrugWindow()
{
InitializeComponent();
}
//private void btnAdd_Click(object sender, RoutedEventArgs e)
//{
// #region 在控件当前选中行下一行追加一行
// int selectIndex = dg.SelectedIndex;// DataGridIndex;
// if (selectIndex == 0) // 如果没有选中行就默认添加,添加到最后一行
// {
// dg.Items.Add(new DataGridRow() { Item = new { Col1 = selectIndex + 1, Col2 = "2-2", Col3 = "3-3" } });
// }
// else // 有选中行,把获取过来的选中索引基础上+1
// {
// dg.Items.Insert(selectIndex + 1, new DataGridRow() { Item = new { Col1 = selectIndex + 1, Col2 = "2-2", Col3 = "3-3" } });
// }
// //this.CurrentItem = newInstance;
// //MoveScrollbarToCurrentPosition(this.CurrentItem);
// //this.IsEditEnable = true;
// #endregion
//}
}
}