Ejemplo n.º 1
0
        public override void PerformDragAndDrop()
        {
            var statemacro = DragAndDropUtility.Get <StateMacro>();
            var stateUnit  = new StateUnit(statemacro);

            context.canvas.AddUnit(stateUnit, DragAndDropUtility.position);
        }
Ejemplo n.º 2
0
        public static StateUnit WithStart()
        {
            var stateUnit = new StateUnit();

            stateUnit.nest.source = GraphSource.Embed;
            stateUnit.nest.embed  = StateGraph.WithStart();
            return(stateUnit);
        }
 private static IEnumerable <IUnitOption> GetStaticOptions()
 {
     yield return(StateUnit.WithStart().Option());
 }