本文整理汇总了C#中IController.WhiteboardClearAll方法的典型用法代码示例。如果您正苦于以下问题:C# IController.WhiteboardClearAll方法的具体用法?C# IController.WhiteboardClearAll怎么用?C# IController.WhiteboardClearAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.WhiteboardClearAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
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":
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;
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;