Exemple #1
0
		public TestFormBase()
        {
            InitializeComponent();
			
			if(!DesignMode) {
				_machine = CreateMachine();
				
				if (_machine == null) return;

				_machine.StartTransition += (object s, TransitionEventArgs e) => { Log("Before transition :" + e + "  called."); };
				_machine.BeforeExitingPreviousState += (object s, TransitionEventArgs e) => { Log("BeforeExit : " + e + "  called."); };
				_machine.EndTransition += (object s, TransitionEventArgs e) => { Log("End transition :" + e + "  called."); };

				Text = "State machine : " + _machine.Name;

				this.FormClosing += (s, e) =>
				{
					_machine.Dispose();
				};

				_machine.PropertyChanged += DocState_PropertyChanged;
			}			
        }
 public TriggerBase(StateMachine machine)
 {
     this.StateMachine = machine ;
 }
 public VersionTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public RevertTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public PubblicatoVersionatoState(StateMachine machine)
     : base(machine, "PubblicatoVersionato")
 {
 }
 public StartState(StateMachine machine)
     : base(machine, "Start")
 {
 }
 public CorrezioneState(StateMachine machine)
     : base(machine, "Correzione")
 {
 }
 public SetCopyNumberGuard(StateMachine machine)
     : base(machine)
 {
 }
 public SaveTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public RemoveTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public CorrezioneVersionatoState(StateMachine machine)
     : base(machine, "CorrezioneVersionato")
 {
 }
 public HideTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public ConsolidateTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public VigenteState(StateMachine machine)
     : base(machine, "Vigente")
 {
 }
 public GuardBase(StateMachine machine)
 {
     this.StateMachine = machine;
 }
 public PublishTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public NonVisibileStoricoState(StateMachine machine)
     : base(machine, "NonVisibileStorico")
 {
 }
 public SimpleFixTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public InvalidateTrigger(StateMachine machine)
     : base(machine)
 {
 }
Exemple #20
0
 public EndState(StateMachine machine)
     : base(machine, "End")
 {
 }
 public NonVigenteState(StateMachine machine)
     : base(machine, "NonVigente")
 {
 }
 public BeginTrigger(StateMachine machine)
     : base(machine)
 {
 }
Exemple #23
0
 public EraseGuard(StateMachine machine)
     : base(machine)
 {
 }
 public ValidatoState(StateMachine machine)
     : base(machine, "Validato")
 {
 }
 public DupIsErasedGuard(StateMachine machine)
     : base(machine)
 {
 }
 public CheckListOkGuard(StateMachine machine)
     : base(machine)
 {
 }
 public ShowTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public CreateTrigger(StateMachine machine)
     : base(machine)
 {
 }
 public RejectTrigger(StateMachine machine)
     : base(machine)
 {
 }
Exemple #30
0
 public RtfInGuard(StateMachine machine)
     : base(machine)
 {
 }