예제 #1
0
 private void MissedMessageProcess(ReturnView returnView, Branch branch)
 {
     if (LastBranch(branch.RightBranch))
     {
         returnView.GetView(ViewEnum.AskFoodView).ShowDialog();
     }
     else
     {
         Validation(branch.RightBranch);
     }
 }
예제 #2
0
 private void HitMessageProcess(ReturnView returnView, Branch branch)
 {
     if (LastBranch(branch.LeftBranch))
     {
         returnView.GetView(ViewEnum.SuccessView).ShowDialog();
     }
     else
     {
         Validation(branch.LeftBranch);
     }
 }
예제 #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);
                }
            }
        }