private void mountCardTree(CardBoxTree tree) { if (tree == null) { return; } cTree = tree; cTree.loadCardDirectories(); lblBoxTitle.Text = lblBoxTitleDef + cBox.title; SettingsFileData.setSettingItem(Localization.FileKeywords.Settings_LastPath, cBoxPath); initTreeView(); }
private void syncBoxList(bool reselect) { lstBoxes.Items.Clear(); boxList.Clear(); int t = lstBoxes.SelectedIndex; foreach (string s in DirectoriesFileData.boxList) { var tree = new CardBoxTree(s); boxList.Add(tree); lstBoxes.Items.Add(tree.boxData.title); } cTree = (reselect) ? boxList[t] : null; }
public DialogNewCard(CardBoxTree tree) { InitializeComponent(); this.tree = tree; card = null; }