本文整理汇总了C#中Visitor.MapToPersonBase方法的典型用法代码示例。如果您正苦于以下问题:C# Visitor.MapToPersonBase方法的具体用法?C# Visitor.MapToPersonBase怎么用?C# Visitor.MapToPersonBase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Visitor
的用法示例。
在下文中一共展示了Visitor.MapToPersonBase方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowVisitorMessage
/// <summary>
/// Shows the visitor message.
/// </summary>
/// <param name="visitor">The visitor.</param>
private void ShowVisitorMessage(Visitor visitor)
{
PersonBase personBase = visitor.MapToPersonBase();
PersonSelectionService.SelectPerson(personBase);
this.ShowMessagePopUp(personBase);
}
示例2: ShowVisitorAlert
/// <summary>
/// Shows the visitor alert.
/// </summary>
/// <param name="visitor">The visitor.</param>
private void ShowVisitorAlert(Visitor visitor)
{
PersonBase personBase = visitor.MapToPersonBase();
PersonSelectionService.SelectPerson(personBase);
this.ShowAlertPopUp(personBase);
}
示例3: SelectVisitor
/// <summary>
/// Function to select visitor.
/// </summary>
/// <param name="visitor">The visitor.</param>
private void SelectVisitor(Visitor visitor)
{
if (visitor != null && !this.IsStopSelection)
{
PersonBase personBase = visitor.MapToPersonBase();
PersonSelectionService.SelectPerson(personBase);
if (!this.IsShowPersonInfoIconClicked)
{
this.ShowAgeVerificationPopupView();
}
}
this.IsShowPersonInfoIconClicked = false;
this.IsStopSelection = false;
}
示例4: ViewVisitorStateroomDetails
/// <summary>
/// Views the visitor stateroom details.
/// </summary>
/// <param name="visitor">The visitor.</param>
private void ViewVisitorStateroomDetails(Visitor visitor)
{
this.IsShowPersonInfoIconClicked = true;
this.SelectVisitor(visitor);
PersonBase personBase = visitor.MapToPersonBase();
Messenger.Instance.Notify(MessengerMessage.ShowPersonInfo, new Tuple<PersonBase, bool>(personBase, false));
}
示例5: ChangeVisitorBoardingStatus
/// <summary>
/// Changes the selected visitor.
/// </summary>
/// <param name="visitor">The visitor.</param>
private static void ChangeVisitorBoardingStatus(Visitor visitor)
{
if (visitor != null)
{
PersonBase personBase = visitor.MapToPersonBase();
PersonSelectionService.SelectPerson(personBase);
Messenger.Instance.Notify(MessengerMessage.ChangePersonBoardingStatus, personBase);
}
}