private void RunCustomActionGroupState(ActionMatrixEventArgs e, EditCustomActionGroupState.CustomType type) { EditCustomActionGroupState state = StateMachine.GetState(StateTypeEnum.EditCustomActionGroup) as EditCustomActionGroupState; state.CollectionFormParent = m_actionPanel.RightPanel; state.Policy = e.Policy; state.Channel = e.Channel; state.CustomActionType = type; StateMachine.SetState(state); }
void m_actionPanel_Action_UpdateOffline(object sender, ActionMatrixEventArgs e) { RunCustomActionGroupState(e, EditCustomActionGroupState.CustomType.Offline); }
private void m_actionPanel_Action_AddingGroup(object sender, ActionMatrixEventArgs e) { AddActionConditionGroupState state = StateMachine.GetState(StateTypeEnum.AddActionConditionGroup) as AddActionConditionGroupState; state.CollectionFormParent = m_actionPanel.RightPanel; state.Policy = e.Policy; state.Channel = e.Channel; state.SenderAddressCollection = e.SenderCollection; state.RecipientAddressCollection = e.RecipientCollection; StateMachine.SetState(state); }
void m_actionPanel_Action_UpdateExceptionHandling(object sender, ActionMatrixEventArgs e) { RunCustomActionGroupState(e, EditCustomActionGroupState.CustomType.ExceptionHandling); }