duheng
2024-11-19 74706b439194deed9c5fde2d5ed02226fc33fd69
WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/AddAssetsExchangerMainDlg.cs
@@ -8,6 +8,7 @@
        public AddAssetsCompressorMainDlg()
        {
            InitializeComponent();
            this.treeList1.InitialMultiColSettings();
            this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
        }
@@ -152,5 +153,13 @@
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
        private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e)
        {
            var vm = this.treeList1.GetCurrentViewModel(_AssetsCompressorCoefficient);
            if (vm == null)
                return;
            this.TextEditCoefficient.Text = vm.MinorLoss.ToString();
        }
    }
}