private void buttonImport_Click(object sender, EventArgs e)
        {
            Djson djOpen = new Djson();

            List <Term> terms = (List <Term>)djOpen.ReadTermFile("term.json");

            listBoxTerm.Items.Clear();
            listBoxTerm.Items.Add(terms[0].Title);
        }
        private void buttonBackup_Click(object sender, EventArgs e)
        {
            List <Assignment> assignments = new List <Assignment>();

            foreach (string item in listBoxGrid.Items)
            {
                assignments.Add(new Assignment(item));
                Djson backup = new Djson();
                backup.Save(new Assignment(item), null);
            }
        }
Exemplo n.º 3
0
        private void buttonClose_Click(object sender, EventArgs e)
        {
            if (listBoxTerm.Items.Count > 0 && textBoxTermName.Text != "")
            {
                listBoxTerm.Items.Add(textBoxTermName.Text);
                this.Tag = listBoxTerm.Items.Cast <string>().ToList();
                Djson djsonTerm = new Djson();
                djsonTerm.Save(term, "term.json");
            }



            this.Close();
        }