/// <summary> /// Used to issue commands to the Radar. Custom radar name is /// not used for on and off and is optional for zoomin and zoomout /// </summary> /// <param name="command">command</param> /// <param name="name">custom radar name</param> public static int Radar(RadarCommand command, string name = null) { Trace.WriteLine((name == null) ? String.Format("Extension:Radar({0})", command.ToString().ToLower()) : String.Format("Extension:Radar({0}, {1})", command, name)); return (LavishScript.ExecuteCommand((name == null) ? String.Format("Radar {0}", command.ToString().ToLower()) : String.Format("Radar {0} {1}", name, command.ToString().ToLower()))); }
/// <summary> /// Used to issue commands to the Radar. Custom radar name is /// not used for on and off and is optional for zoomin and zoomout /// </summary> /// <param name="command">command</param> /// <param name="name">custom radar name</param> public static int Radar(RadarCommand command, string name = null) { Trace.WriteLine((name == null) ? String.Format("Extension:Radar({0})", command.ToString().ToLower()) : String.Format("Extension:Radar({0}, {1})", command, name)); return LavishScript.ExecuteCommand((name == null) ? String.Format("Radar {0}", command.ToString().ToLower()) : String.Format("Radar {0} {1}", name, command.ToString().ToLower())); }