public override void load() { Dictionary<string, Dictionary<string,string>> data = con.loadDoubleDictionary("loadDocumentlist",this.jsonIn); foreach(KeyValuePair<string,Dictionary<string,string>> document in data){ KmDocument documentObject = new KmDocument(con, document.Value); this.list.Add(documentObject); } }
public override void load() { Dictionary<string, Dictionary<string, string>> data = con.loadDoubleDictionary("loadRelatedlist", "{\"tags\":\"" + this.tags + "\",\"id\":\"" + this.id + "\"}"); foreach (KeyValuePair<string, Dictionary<string, string>> document in data) { KmDocument documentObject = new KmDocument(con, document.Value); this.list.Add(documentObject); } }
//gegevens ophalen public override void load() { //gegevens inladen via internet Dictionary<string, Dictionary<string,string>> data = con.loadDoubleDictionary("loadDocumentlist",this.jsonIn); //en objecten van aanmaken foreach(KeyValuePair<string,Dictionary<string,string>> document in data){ KmDocument documentObject = new KmDocument(con, document.Value); this.list.Add(documentObject); } }
public override void load() { //via internet lijst met gerelateerde artikelen ophalen Dictionary<string, Dictionary<string, string>> data = con.loadDoubleDictionary("loadRelatedlist", "{\"tags\":\"" + this.tags + "\",\"id\":\"" + this.id + "\"}"); //documenten in objecten plaatsen foreach (KeyValuePair<string, Dictionary<string, string>> document in data) { KmDocument documentObject = new KmDocument(con, document.Value); this.list.Add(documentObject); } }
//inladen public override void load() { //dictionary via internet ophalen Dictionary<string, Dictionary<string, string>> data = con.loadDoubleDictionary("loadInterestList"); //documenten in lijst plaatsen foreach (KeyValuePair<string, Dictionary<string, string>> document in data) { KmDocument documentObject = new KmDocument(con, document.Value); this.list.Add(documentObject); } }
private void button4_Click(object sender, EventArgs e) { KmDocument document = new KmDocument(con); document.description = textBox5.Text; document.title = textBox6.Text; document.tags = textBox7.Text; document.file = textBox8.Text; OpenFileDialog dialog = new OpenFileDialog(); if (dialog.ShowDialog() == DialogResult.OK) { document.loadFile(dialog.FileName); document.save(); } }