private void button4_Click(object sender, EventArgs e) { KmConnection con = new KmConnection("http://localhost/km/"); con.auth("mark", "wachtpas"); KmUserList userlist = new KmUserList(con); listBox3.DataSource = userlist.list; }
public KmDocumentList(KmConnection con, string search, int userid) : base(con) { list=new List<KmDocument>(); jsonIn = "{\"search\":\"" + search + "\",\"user\":\"" + userid + "\"}"; this.load(); }
//constructen public KmRelatedList(KmConnection con, string tags,int id) : base(con) { this.list=new List<KmDocument>(); this.tags = tags; this.id = id; this.load(); }
private void button5_Click(object sender, EventArgs e) { KmConnection con = new KmConnection("http://localhost/km/"); con.auth("mark", "wachtpas"); KmUser user = new KmUser(con); user.username = "******"; user.password = "******"; user.save(); }
private void button3_Click(object sender, EventArgs e) { KmConnection con = new KmConnection("http://localhost/km/"); con.auth("mark", "wachtpas"); KmInterestList documentlist = new KmInterestList(con); listBox1.DataSource = documentlist.list; }
//in constructor verbinding aanmaken public KmDataobject(KmConnection con) { this.con = con; }
public KmUserList(KmConnection con, string search) : base(con) { list=new List<KmUser>(); load(search); }
//enkele constructors.. wil je zoeken etc.. public KmUserList(KmConnection con) : base(con) { list= new List<KmUser>(); load(); }
public KmUser(KmConnection con, Dictionary<string, string> data) : base(con) { this.id=int.Parse(data["id"]); this.load(data); }
public KmUser(KmConnection con, int id) : base(con) { this.id = id; load(); }
//enkele constructors.. hoe wil je de user ophalen. public KmUser(KmConnection con) : base(con) { }
public KmDocumentList(KmConnection con) : base(con) { list=new List<KmDocument>(); load(); }
public KmDocument(KmConnection con, Dictionary<string, string> data) : base(con) { this.id = int.Parse(data["id"]); load(data); }
public KmDocument(KmConnection con, int id) : base(con) { this.id = id; this.load(); }
//verschillende constructors.. public KmDocument(KmConnection con) : base(con) { }