Exemple #1
0
 public static void triggerSideBarAddNewButtonEvent(Applicatie_Risicoanalyse.Controls.ARA_Button aButton, Object FormType)
 {
     if (SideBarAddNewButtonEventHandler != null)
     {
         SideBarAddNewButtonEventHandler(aButton, new SideBarAddNewButtonEvent(aButton, FormType));
     }
 }
 /// <summary>
 /// Sets a specific button selected, while deselecting the other ones. Als update the selected weight.
 /// </summary>
 /// <param name="button"></param>
 private void setButtonSelected(ARA_Button button = null)
 {
     //Loop throuh all our buttons.
     foreach (ARA_Button control in this.RiskEstimationPanel.Controls.OfType <ARA_Button>())
     {
         if (control != button)
         {
             control.setButtonSelected(false);
         }
         else //Update the selected weight.
         {
             if (buttonWeights.Count > 0)
             {
                 this.selectedIndex = this.RiskEstimationPanel.Controls.IndexOf(control);
                 control.setButtonSelected(false);
             }
         }
     }
 }
Exemple #3
0
 public SideBarAddNewButtonEvent(Applicatie_Risicoanalyse.Controls.ARA_Button aButton, Object FormType)
 {
     this.Button   = aButton;
     this.FormType = FormType;
 }