Beispiel #1
0
 /// <summary> Fires the <see cref="CommandClick"/> event. </summary>
 /// <param name="businessObject">
 ///   The current <see cref="Value"/>, which corresponds to the clicked <see cref="IBusinessObjectWithIdentity"/>,
 ///   unless somebody changed the <see cref="Value"/> in the code behind before the event fired.
 /// </param>
 protected virtual void OnCommandClick(IBusinessObjectWithIdentity businessObject)
 {
     if (Command != null)
     {
         Command.OnClick(businessObject);
         BocCommandClickEventHandler commandClickHandler = (BocCommandClickEventHandler)Events[CommandClickEvent];
         if (commandClickHandler != null)
         {
             BocCommandClickEventArgs e = new BocCommandClickEventArgs(Command, businessObject);
             commandClickHandler(this, e);
         }
     }
 }
Beispiel #2
0
 protected void CurrentSubstitutionField_CommandClick(object sender, BocCommandClickEventArgs e)
 {
     _isCurrentSubstitutionFieldReadOnly = false;
     CurrentSubstitutionField.SetBusinessObjectList(GetPossibleSubstitutions());
     CurrentSubstitutionField.LoadUnboundValue(SecurityManagerPrincipal.Current.Substitution, false);
 }
 private void PartnerField_CommandClick(object sender, BocCommandClickEventArgs e)
 {
     TestOutput.SetActionPerformed("CommandClick", "", e.Command.OwnerControl.ID);
 }
Beispiel #4
0
 private void ReadOnlyPartnerField_CommandClick(object sender, BocCommandClickEventArgs e)
 {
     PartnerCommandClickLabel.Text = "ReadOnlyPartnerField clicked";
 }