Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
algorizm #1
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
Subject: We'll ask a few questions
1) The following source code for - WindowsFormsApplication3 > Form1.cs
I was trying to load configuration xml file by using Document::RootElement::SelectSingleElement(), but it only returns 'null' data. Refer to the line #1091 in the Element.cs file, the return value of ch.GetType() should be the same with variable 'type'. Which means, ch.GetType() is supposed to return the 'WindowsFormsApplication3.Settings.Login' object type, but it returns 'agsXMPP.Xml.Dom.Element'. This method DOES work in MiniClient - the sample source code you distributed.
Same as the sample source code Login.cs and Settings.cs
if (System.IO.File.Exists(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) +
                @"\Settings.xml"))
            {
                Document doc = new Document();

                doc.LoadFile(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) +
                @"\Settings.xml");

                Settings.Login login = doc.RootElement.SelectSingleElement(typeof(Settings.Login)) as Settings.Login;

                if (login != null)
                {
                    MessageBox.Show(login.Jid.ToString());
                }
            }

2) Binding on/offline TreeView RosterNode is already implemented in RosterControl, but I would like to group child nodes in other ways, like binding child nodes in a specific rules, - such as friends, colleagues, etc -  or  serialize child nodes. so, I would like to know if these functions are supported in the commercial version.
 

3) I also would like to know what is included in the commercial version. I'm having a little problem with a lack of documents. The API lists are the only thing I can find. I will be very appreciated if you have another good documents in the commercial version.
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
1) The Login class can be only created when it gets registered in the Element Factory. This is done in the example in the main form constructor with teh following code:

  1. agsXMPP.Factory.ElementFactory.AddElementType("Login", null, typeof(Settings.Login));
is this line missing in your code?

2) The roster control shows he hierarchy as it is stored in your roster. If you want another hierarchy you have to change the group of the contacts. If you want a hierarchy with more than 1 level like the following you have to modify the roster control to support nested roster groups which is supported in agsXMPP.
The Roster Control does not support nested roster groups.

* Contacts
   * Friends
      * SubGroup1
      * SubGroup2
      * SubGroup3
   * CoWorkers
      * SubGroup1
      * SubGroup2
      * SubGroup3

The RosterControl is meant only as an example to show you how to build your own roster control. Most developers want their own look and feel in this control and modify it.

3) The commercial license does not include additional code, or documentation. But it includes professional email support.

Alex
Avatar
algorizm #3
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
Hi, Alex

I should have seen code..
to be asking for rosterControl Treeview type shorten the development time..

thanks,
Alex
This post was edited on 2008-12-24, 00:51 by algorizm.
Avatar
Alex #4
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You can extend the rosterControl to shorten your development time.
But depending on the features you need in your contact list a SWF treeview is often not the best choice.

Alex
Avatar
algorizm #5
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
Hi, Alex

I've been talking to the mono base GTK# SWF treeview
are talking about?

SWF treeview What are you talking about?
please reply..

thanks, Alex
Avatar
Alex #6
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
also about the SWF treeview.

Alex
Avatar
algorizm #7
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
What does it mean?
SWF treeview, Mono base GTK# is about right?
For more details, please answer.
Avatar
Alex #8
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I only want to say that for a basic roster a Treeview is fine. But if you want a nice roster like it is in several other clients like Pandion, Psi, Spark and others this is very complex or impossible with a standard SWF Treeview because the Treeview is very limited in its functionality. In our previous projects we always wrote own cutsom user controls  for the roster.
Avatar
algorizm #9
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
One thing I ask is to see..
What is it I'm just a SWF Treeview?

Thank you for answers to many times.
Avatar
Alex #10
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry, I don't understand your question. Can you pleas elaborate?
Avatar
algorizm #11
Member since Dec 2008 · 11 posts
Group memberships: Members
Show profile · Link to this post
sorry, Does not speak English well.
Because I am a Korean.

What is the abbreviation of SWF?
System.Windows.Forms Treeview means that SWF Treeview to do with this?
What it is, or is it something else?
Avatar
Alex #12
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes SWF stands for System.Windows.Forms.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS