[ pl4stik @ 24.05.2012. 19:42 ] @
Pozdrav, Imam neku klasu clsCCTrans i treba da je iskoristim koristeci dva overloadera kolko sam mogo da shvatim Code: '---------------------------------------------------------------------- ' Constructor: ' This constructor is used to create a new CC Transaction. ' No merchant data structure is passed in on this overload, therefore ' SecurePay will NOT be called. ' '---------------------------------------------------------------------- Public Sub New(ByVal ChargeAmount As Decimal, _ ByVal StaffId As Integer, _ ByVal CustomerId As Integer) ' This call is required by the designer. InitializeComponent() ' If this constructor is used then a new CC Trans is being created: _CCTrans = New clsCCTrans() _CCTrans.CustomerId = CustomerId _CCTrans.EnteredStaffId = StaffId _ChargeAmount = ChargeAmount txtChargeAmount.Text = _ChargeAmount.ToString End Sub '---------------------------------------------------------------------- ' Constructor: ' This constructor is used to create a new CC Tranaction. ' Merchant data is passed in on this overload, therefore ' SecurePay WILL be called. '--------------------------------------------------------------------- Public Sub New(ByVal ChargeAmount As Decimal, _ ByVal StaffId As Integer, _ ByVal CustomerId As Integer, _ ByVal mData As MerchantData) ' This call is required by the designer. InitializeComponent() ' If this constructor is used then a new CC Trans is being created: _CCTrans = New clsCCTrans() _CCTrans.CustomerId = CustomerId _CCTrans.EnteredStaffId = StaffId _ChargeAmount = ChargeAmount txtChargeAmount.Text = _ChargeAmount.ToString End Sub Jel moze neko da mi kaze kako ? |