public override CmdResult ExecuteRequest(CmdRequest args0)
        {
            var args = args0.GetProperty("image");

            if (args.Length < 1)
            {
                return(ShowUsage());
            }
            UUID AssetID = UUID.Zero;
            int  argsUsed;

            if (!UUIDTryParse(args, 0, out AssetID, out argsUsed))
            {
                return(Failure("Cant get asset from " + AssetID));
            }

            TheBotClient.InvokeGUI(() =>
            {
                var v = new SLImageHandler(TheBotClient.TheRadegastInstance, AssetID,
                                           AssetID.ToString())
                {
                    Dock = DockStyle.Fill
                };
                var f = new RadegastForm();
                f.Controls.Add(v);
                f.Show();
            });

            return(Success("Done RequestAsset " + AssetID));
        }
        public override CmdResult ExecuteRequest(CmdRequest args)
        {
            if (args.Length < 1)
            {
                return(ShowUsage());
            }

            GroupName = String.Empty;
            for (int i = 0; i < args.Length; i++)
            {
                GroupName += args[i] + " ";
            }
            GroupName = GroupName.Trim();

            GroupUUID = Client.GroupName2UUID(GroupName);
            if (UUID.Zero != GroupUUID)
            {
                TheBotClient.InvokeGUI(() =>
                {
                    Group group = new Group {
                        ID = GroupUUID
                    };
                    TheBotClient.TheRadegastInstance.MainForm.ShowGroupProfile(group);
                });

                return(Failure("Shown group " + GroupName + " " + GroupUUID));
            }
            return(Failure("Cannot find group " + GroupName));
        }
        public override CmdResult ExecuteRequest(CmdRequest args0)
        {
            var args = args0.GetProperty("targets");

            if (args.Length == 0)
            {
                return(ShowUsage());
            }

            int           argsUsed;
            List <string> searchArgs = new List <string> {
                "family"
            };

            searchArgs.AddRange(args);
            List <SimObject> PSO = WorldSystem.GetPrimitives(searchArgs.ToArray(), out argsUsed);
            List <Primitive> PS  = new List <Primitive>();

            WorldSystem.AsPrimitives(PS, PSO);
            if (IsEmpty(PS))
            {
                return(Failure("Cannot find objects from " + string.Join(" ", args)));
            }
            Primitive rootPim = PS[0];

            foreach (Primitive ps in PS)
            {
                if (ps.ParentID == 0)
                {
                    rootPim = ps;
                }
            }
            TheBotClient.InvokeGUI(() =>
            {
                frmPrimWorkshop pw = new frmPrimWorkshop(TheBotClient.TheRadegastInstance,
                                                         rootPim.LocalID);
                // pw.LoadPrims(PS);
                // pw.
                pw.Show();
            });
            return(Success(Name + " on " + PS.Count));
        }
        public override CmdResult ExecuteRequest(CmdRequest args)
        {
            if (args.Length < 1)
            {
                return(ShowUsage());
            }
            int argsUsed;

            foreach (var p in WorldSystem.GetPrimitives(args, out argsUsed))
            {
                if (p is SimAvatar)
                {
                    SimAvatar a = (SimAvatar)p;
                    AddSuccess("Showing " + a);
                    TheBotClient.InvokeGUI(() =>
                                           new Radegast.frmProfile(TheBotClient.TheRadegastInstance, a.GetName(), a.ID).Show());
                }
            }
            return(SuccessOrFailure());
        }