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