ningshuxia
2025-03-31 36f1be9860b303afac93f93a15f0c62cba57c3c5
WinFrmUI/PBS.WinFrmUI.Hydro/05-system-curve/01-facility/FacilityPropertyCtrl.cs
@@ -15,6 +15,7 @@
            this.propertyGridControl1.OptionsView.AllowReadOnlyRowAppearance = DevExpress.Utils.DefaultBoolean.True;
            this.propertyGridControl1.OptionsView.ShowFocusedFrame = false;
            this.propertyGridControl1.OptionsView.ShowRootLevelIndent = false;
            this.propertyGridControl1.RecordWidth = 120;
            this.propertyGridControl1.RowHeaderWidth = 100;
        }
@@ -33,15 +34,15 @@
        /// <summary>
        /// 绑定数据
        /// </summary>
        public   void SetBindingData(FacilityVmo facility)
        public void SetBindingData(FacilityVmo facility)
        {
            FacilityPropertyViewModel vm = null;
            if (facility!=null)
            if (facility != null)
            {
                vm = new FacilityPropertyViewModel(facility);
            }
            this.propertyGridControl1.SelectedObject= vm;
            this.propertyGridControl1.SelectedObject = vm;
        }
@@ -167,8 +168,7 @@
                return;
            }
            var descriptor = this.propertyGridControl1.GetPropertyDescriptor(e.Row);
            var rowTypeFullName = e.Row.Properties.RowType.FullName;
            var rowTypeFullName = e.Row.Properties.RowType.FullName;
            #region bool
@@ -219,8 +219,7 @@
             
        }
 
 
        //刷新
        private void barBtnRefresh_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {