Exemple #1
0
 public FormActions()
 {
     try
     {
         InitializeComponent();
         myDelegate = new UpdateLabelsDel(actionsControl.UpdateLabels);
     }
     catch (Exception ex)
     {
         Tools.Instance.Logger.LogError(ex.ToString());
     }
 }
Exemple #2
0
 public FormActions(EventHandler roomActionEventHandler)
 {
     try
     {
         InitializeComponent();
         _roomActionEventHandler = roomActionEventHandler;
         ActionsObserver = new Delegates.ActionsEventHandler(OnActionTriggered);
         myDelegate = new UpdateLabelsDel(actionsControl.UpdateLabels);
     }
     catch (Exception ex)
     {
         Tools.Instance.Logger.LogError(ex.ToString());
     }
 }