Files
29WxOrder/29WxOrderWpf/MainWindow.xaml.cs
T
2026-06-12 20:13:25 +08:00

62 lines
1.7 KiB
C#

using AllBase;
using AllBase.Model;
using NaiBa.Util;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
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 _29WxOrderWpf
{
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
public ObservableCollection<oms_wei_order_info> lstOrder = new ObservableCollection<oms_wei_order_info>();
public MainWindow()
{
InitializeComponent();
this.Height = 800;
this.Width = 1600;
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
//MyData newItem = new MyData { Name = "New Person", Age = 28 }; // 创建新数据项
//_myDataCollection.Add(newItem); // 添加到集合中
//dataGrid.Items.Refresh();.
//dgOrder.Items.Add(1111111);
dgOrder.ItemsSource = lstOrder;
for (int i = 0; i < 10000; i++)
{
lstOrder.Add(new oms_wei_order_info() { id = 1, is_select = false, order_id = "3737033423685556736 " + Randomx.GetId(1000, 10000), shop_name = "媛卡曦工厂优选" });
}
}
private void btnClose_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
}
}