本文整理汇总了C#中IController.WhiteboardSyncScreenView方法的典型用法代码示例。如果您正苦于以下问题:C# IController.WhiteboardSyncScreenView方法的具体用法?C# IController.WhiteboardSyncScreenView怎么用?C# IController.WhiteboardSyncScreenView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.WhiteboardSyncScreenView方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null))
{
receiver.WhiteboardUndo(object_id, user_id, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "ClientMeasure_ScreenView":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
int originX = ((IntegerValue)vpEvent.parameters["Origin-X"]).value;
int originY = ((IntegerValue)vpEvent.parameters["Origin-Y"]).value;
int screenSizeWidth = ((IntegerValue)vpEvent.parameters["ScreenSizeWidth"]).value;
int screenSizeHeight = ((IntegerValue)vpEvent.parameters["ScreenSizeHeight"]).value;
double screenZoom = ((DoubleValue)vpEvent.parameters["ScreenZoom"]).value;
if (user_id != null)
{
receiver.WhiteboardScreenView(user_id, originX, originY, screenSizeWidth, screenSizeHeight, screenZoom);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardSyncScreenView":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string whiteboard_id = ((StringValue)vpEvent.parameters["WhiteboardID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null) & (whiteboard_id != null))
{
receiver.WhiteboardSyncScreenView(user_id, target_id, whiteboard_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "HandshakeAvailablePlayers":
try
{
if (((StringValue)vpEvent.parameters["TargetTerminalID"]).value == DDD_Global.Instance.TerminalID && DDD_Global.Instance.HasAuthenticated)
{
StringListValue s = vpEvent.parameters["AvailablePlayers"] as StringListValue;
DDD_Global.Instance.DM_List = ((StringListValue)vpEvent.parameters["Players"]).strings;
if (s != null)
{
if (s.strings.Count > 0)
{
receiver.HandshakeAvailablePlayers(s.strings.ToArray());
}
}
}