Example #1
0
 public DialogPatternPage(myAction action, Entity entity, string typeOfThread)
 {
     InitializeComponent();
     this.action       = action;
     this.entity       = entity;
     this.typeOfThread = typeOfThread;
 }
Example #2
0
        private void ShowChooseDialog(Entity selectedItem, myAction action)
        {
            var dialog = new DialogThreadPage(action, selectedItem);
            var win    = new NavigationWindow()
            {
                Content = dialog, Width = 300, Height = 200
            };

            win.Show();
        }
    public static myAction NextAction(List <int> pinFalls)
    {
        ActionMasterOld am            = new ActionMasterOld();
        myAction        currentAction = new myAction();

        foreach (int pins in pinFalls)
        {
            currentAction = am.Bowl(pins);
        }
        return(currentAction);
    }
Example #4
0
 void CheckVerticesAction()
 {
     if (Createvertices.Count > 0)
     {
         myAction action = Createvertices.Dequeue();
         action();
     }
     if (EditedActions.Count > 0)
     {
         myAction Editaction = EditedActions.Dequeue();
         Editaction();
     }
 }
Example #5
0
        private void button3_Click(object sender, EventArgs e)
        {
            Action <int, int> add = (s, t) => Debug.WriteLine((s + t).ToString());
            // Actions don't return a value, Func does
            Action <int, int> mul = (s, t) => Debug.WriteLine((s * t).ToString());
            Action <int, int> x;

            x  = add;
            x += mul;
            x(1, 2);

            myAction y = (s, t) => Debug.WriteLine((s - t).ToString());;

            y(1, 2);
        }
Example #6
0
 public DialogThreadPage(myAction action, Entity entity)
 {
     InitializeComponent();
     this.action = action;
     this.entity = entity;
 }