本文整理汇总了C#中IController.WhiteboardClear方法的典型用法代码示例。如果您正苦于以下问题:C# IController.WhiteboardClear方法的具体用法?C# IController.WhiteboardClear怎么用?C# IController.WhiteboardClear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.WhiteboardClear方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
receiver.TextChatRequest(user_id, chat_body, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("TextChat", e.Message));
}
break;
case "WhiteboardLine":
try
{
string object_id = ((StringValue)vpEvent.parameters["ObjectID"]).value;
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
LocationValue start = (LocationValue)vpEvent.parameters["StartLocation"];
LocationValue end = (LocationValue)vpEvent.parameters["EndLocation"];
int mode = ((IntegerValue)(vpEvent.parameters["Mode"])).value;
double width = ((DoubleValue)(vpEvent.parameters["Width"])).value;
double originalScale = ((DoubleValue)(vpEvent.parameters["OriginalScale"])).value;
int color = ((IntegerValue)(vpEvent.parameters["Color"])).value;
string text = ((StringValue)vpEvent.parameters["Text"]).value;
if ((user_id != null) && (target_id != null))
{
receiver.WhiteboardLine(object_id, user_id, mode, start, end, width, originalScale, color, text, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardClear":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null))
{
receiver.WhiteboardClear(user_id, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardClearAll":
try
{
string user_id = ((StringValue)vpEvent.parameters["UserID"]).value;
string target_id = ((StringValue)vpEvent.parameters["TargetUserID"]).value;
if ((user_id != null) && (target_id != null))
{
receiver.WhiteboardClearAll(user_id, target_id);
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("Whiteboard", e.Message));
}
break;
case "WhiteboardUndo":