private void btnCommit_Click(object sender, EventArgs e) { CardBoxFileData boxData = new CardBoxFileData(); boxData.title = txtBoxName.Text; if (rbtByCategory.Checked) { boxData.indexing = BoxIndexing.CATEGORY; } else if (rbtByChapter.Checked) { boxData.indexing = BoxIndexing.CHAPTERS; } else if (rbtByTime.Checked) { boxData.indexing = BoxIndexing.CHRONOLOGICAL; } else { boxData.indexing = BoxIndexing.INVALID; } boxData.dateCreated = IOUtil.formatNow(); boxData.creator = SettingsFileData.getSettingItem(Localization.FileKeywords.Settings_UsersName); boxData.writeFile(txtBoxPath.Text); DirectoriesFileData.addCardBoxAndSave(txtBoxPath.Text); }
private void btnUnlistBox_Click(object sender, EventArgs e) { DirectoriesFileData.removeCardBox(boxList[lstBoxes.SelectedIndex].boxDirectory); syncBoxList(false); }