private void loadQueue() { if (System.IO.Directory.Exists(Serializer.defaultFilePath)) { String fp = Serializer.defaultFilePath + "\\thoughts.tq"; if (System.IO.File.Exists(fp)) { //Yes: Load the day queue = Serializer.DeSerialize(fp); if(queue != null) { queue.loadCategories(); foreach (Thought t in queue.getAll()) { AddThought(t); } cbx_cats.Items.Add(AllCats); act_ctxt_cats.DropDownItems.Add(new ToolStripMenuItem(AllCats)); cbx_cats.SelectedIndex = 0; foreach (String str in queue.categories) { if (!cbx_cats.Items.Contains(str)) cbx_cats.Items.Add(str); ToolStripMenuItem catItem = new ToolStripMenuItem(str); catItem.Click += clickedCategoryContext; if (!act_ctxt_cats.DropDownItems.Contains(catItem)) { act_ctxt_cats.DropDownItems.Add(catItem); } } } } } }