我已经编程了一段时间,但是我有一些基本的问题,其中一个如下:
Public Class PriceListDetails
Dim pricelist As BSPLib.PriceLists.PriceList
Dim IsReadOnly1 As Boolean
Public Sub New(ByVal IsReadonly2 As Boolean)
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
'Readonly prevents from Modifying/Saving
IsReadOnly1 = IsReadonly
End Sub
End Class
是否必须创建 IsReadyOnly1 和 IsReadyOnly2,有没有办法像引用类型一样直接将参数从新方法获取到 IsReadyOnly1?
谢谢你。