It's almost done: all I need to do now is test it with my application.
Use is VERY simple. You add the ConnectionManager component to your form, and then in the form's load event, call ConnectionManger1.ShowDialog ()
Also, rather than instantiating the SecondLife object directly (client=new SecondLife(...)), you want to use the ConnectionManager's client object (client=ConnectionManager1.client)
So with 3 lines of code, you can present the login dialog and connect to the server.
I will generate a patch file and get it up to you as soon as I get the control and the component out in to their own project.
On 8/4/06, John Hurliman
<[EMAIL PROTECTED]> wrote:
Tom Wilson wrote:
> I was having trouble getting my messenger app to log in tonight, and
> so I went back and started (re-) copying code from the accountant sample.
>
> This gave me an idea:
>
> What if we built a User Control that contained the connect and
> disconnect process? This could be contained inside the libSecondLife
> DLL, and basically it would contain input boxes for the un/password, a
> check box to save the login details (save to the registry and share
> with all other programs using the control) and the connect/disconnect
> button.
>
> Then all an app developer would have to do is put the control on his
> form and handle "connected" and "disconnected" events.
>
> I can write the control easily enough, and even incorportate it in to
> the accountant sample. I have to do it anyway to make my chat app
> work, so I figure why not make it available to everyone. If we updated
> the samples to use this, it should ease maintenance down the road, as
> well (only one module to fix when the process changes).
>
> What do you think?
>
> --
> Tom Wilson
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> KI6ABZ
>
Create it as a separate assembly for now and we can add it to the
example programs.
John
_______________________________________________
libsecondlife-dev mailing list
libsecondlife-dev@gna.org
https://mail.gna.org/listinfo/libsecondlife-dev
--
Tom Wilson
[EMAIL PROTECTED]
KI6ABZ
_______________________________________________ libsecondlife-dev mailing list libsecondlife-dev@gna.org https://mail.gna.org/listinfo/libsecondlife-dev