Beispiel #1
0
 private void MissedMessageProcess(ReturnView returnView, Branch branch)
 {
     if (LastBranch(branch.RightBranch))
     {
         returnView.GetView(ViewEnum.AskFoodView).ShowDialog();
     }
     else
     {
         Validation(branch.RightBranch);
     }
 }
Beispiel #2
0
 private void HitMessageProcess(ReturnView returnView, Branch branch)
 {
     if (LastBranch(branch.LeftBranch))
     {
         returnView.GetView(ViewEnum.SuccessView).ShowDialog();
     }
     else
     {
         Validation(branch.LeftBranch);
     }
 }
Beispiel #3
0
        public void Validation(Branch branch)
        {
            var returnView = new ReturnView(branch);

            if (!LastBranch(branch))
            {
                if (returnView.GetView(ViewEnum.AskView).ShowDialog() == true)
                {
                    HitMessageProcess(returnView, branch);
                }
                else
                {
                    MissedMessageProcess(returnView, branch);
                }
            }
        }