Exemple #1
0
 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();
 }
Exemple #2
0
        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;
        }
Exemple #3
0
 public DialogNewCard(CardBoxTree tree)
 {
     InitializeComponent();
     this.tree = tree;
     card      = null;
 }