示例#1
0
        public override void PerformDragAndDrop()
        {
            var statemacro = DragAndDropUtility.Get <StateMacro>();
            var stateUnit  = new StateUnit(statemacro);

            context.canvas.AddUnit(stateUnit, DragAndDropUtility.position);
        }
示例#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());
 }