Ejemplo n.º 1
0
 /// <summary>
 /// Triggers the RadegastFormCreated event.
 /// </summary>
 public virtual void OnRadegastFormCreated(RadegastForm radForm)
 {
     if (RadegastFormCreated != null)
     {
         RadegastFormCreated(radForm);
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Triggers the RadegastFormCreated event.
 /// </summary>
 public virtual void OnRadegastFormCreated(RadegastForm radForm)
 {
     if (RadegastFormCreated != null) RadegastFormCreated(radForm);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Triggers the RadegastFormCreated event.
 /// </summary>
 public virtual void OnRadegastFormCreated(RadegastForm radForm)
 {
     RadegastFormCreated?.Invoke(radForm);
 }