public FormActions() { try { InitializeComponent(); myDelegate = new UpdateLabelsDel(actionsControl.UpdateLabels); } catch (Exception ex) { Tools.Instance.Logger.LogError(ex.ToString()); } }
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()); } }