duheng
2024-09-19 3816b7dfff85051c09a99f2e49196a731ce994a5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace HStation.WinFrmUI.Xhs
{
    public partial class PumpMainChoicePage : DevExpress.XtraEditors.XtraUserControl
    {
        public PumpMainChoicePage()
        {
            InitializeComponent();
            this.gridView1.SetNormalView(30);
            this.gridView1.OptionsView.ShowDetailButtons = true;
            this.gridView1.OptionsView.ShowGroupPanel = false;
        }
 
        /// <summary>
        /// 初始化
        /// </summary>
        public async void InitialPage()
        {
            var list = new List<HydroPumpViewModel>();
            list.Add(new HydroPumpViewModel { ID = 1, Name = "父", testChildrens = new List<TestChildren> { new TestChildren { Id = 2, Name = "子" } } });
            this.hydroPumpViewModelBindingSource.DataSource = list;
        }
    }
}