예제 #1
0
 private void add_sub_groups(PwGroup group, int level, string cur_item_uuid)
 {
     PwObjectList<PwGroup> groups = group.GetGroups(false);
     foreach (PwGroup sub_group in groups)
     {
         StartGroupDropdown item = new StartGroupDropdown(sub_group.Uuid.ToHexString(), sub_group.Name, level + 1);
         if (sub_group.Uuid.ToHexString() == cur_item_uuid)
             drop_cur_item = item;
         drop_items.Add(item);
         add_sub_groups(sub_group, level + 1, cur_item_uuid);
     }
 }
예제 #2
0
        private void add_sub_groups(PwGroup group, int level, string cur_item_uuid)
        {
            PwObjectList <PwGroup> groups = group.GetGroups(false);

            foreach (PwGroup sub_group in groups)
            {
                StartGroupDropdown item = new StartGroupDropdown(sub_group.Uuid.ToHexString(), sub_group.Name, level + 1);
                if (sub_group.Uuid.ToHexString() == cur_item_uuid)
                {
                    drop_cur_item = item;
                }
                drop_items.Add(item);
                add_sub_groups(sub_group, level + 1, cur_item_uuid);
            }
        }
예제 #3
0
        private void OptionsForm_Load(object sender, EventArgs e)
        {
            pcOptions.TabIndex = 0;

            edPercent.Value                     = Options.Transparency;
            pnPanelColor.BackColor              = Options.PanelColor;
            pnFontColor.BackColor               = Options.FontColor;
            cbURLAction.SelectedIndex           = Options.URLAction;
            cbxSortAlphabetical.Checked         = Options.sortAlphabetical;     //s²
            cbxShowClock.Checked                = Options.showClock;
            cbxShortcutAlt.Checked              = Options.shortcutAlt;
            cbxShortcutCntrl.Checked            = Options.shortcutCntrl;
            cbxShortcutShift.Checked            = Options.shortcutShift;
            cbxShortcutWin.Checked              = Options.shortcutWin;
            cbxShortcutAltQuick.Checked         = Options.shortcutAltQuick;
            cbxShortcutCntrlQuick.Checked       = Options.shortcutCntrlQuick;
            cbxShortcutShiftQuick.Checked       = Options.shortcutShiftQuick;
            cbxShortcutWinQuick.Checked         = Options.shortcutWinQuick;
            cbxShowFoldersBeforeEntries.Checked = Options.foldersFirst;
            cbxShowSearch.Checked               = Options.showSearch;
            cbxShowLastOne.Checked              = Options.showLastOne;
            txtShortcutKey.Text                 = Options.shortcutKey;
            txtShortcutKeyQuick.Text            = Options.shortcutKeyQuick;
            drop_items = new List <StartGroupDropdown>();
            StartGroupDropdown drop = new StartGroupDropdown("", "Root Group", 0);

            drop_cur_item = drop;
            drop_items.Add(drop);
            if (Host.Database != null && Host.Database.IsOpen)
            {
                PwGroup cur_group = Host.Database.RootGroup;
                add_sub_groups(cur_group, 0, Options.startGroupUUID);
            }
            cbStartGroup.Items.Clear();
            cbStartGroup.Items.AddRange(drop_items.ToArray());
            cbStartGroup.SelectedItem = drop_cur_item;
            AutoScaleDimensions       = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode             = AutoScaleMode.Font;
        }
예제 #4
0
        private void OptionsForm_Load(object sender, EventArgs e)
        {
            pcOptions.TabIndex = 0;

            edPercent.Value = Options.Transparency;
            pnPanelColor.BackColor = Options.PanelColor;
            pnFontColor.BackColor = Options.FontColor;
            cbURLAction.SelectedIndex = Options.URLAction;
            cbxSortAlphabetical.Checked = Options.sortAlphabetical; //s²
            cbxShowClock.Checked = Options.showClock;
            cbxShortcutAlt.Checked = Options.shortcutAlt;
            cbxShortcutCntrl.Checked = Options.shortcutCntrl;
            cbxShortcutShift.Checked = Options.shortcutShift;
            cbxShortcutWin.Checked = Options.shortcutWin;
            cbxShortcutAltQuick.Checked = Options.shortcutAltQuick;
            cbxShortcutCntrlQuick.Checked = Options.shortcutCntrlQuick;
            cbxShortcutShiftQuick.Checked = Options.shortcutShiftQuick;
            cbxShortcutWinQuick.Checked = Options.shortcutWinQuick;
            cbxShowFoldersBeforeEntries.Checked = Options.foldersFirst;
            cbxShowSearch.Checked = Options.showSearch;
            cbxShowLastOne.Checked = Options.showLastOne;
            txtShortcutKey.Text = Options.shortcutKey;
            txtShortcutKeyQuick.Text = Options.shortcutKeyQuick;
            drop_items = new List<StartGroupDropdown>();
            StartGroupDropdown drop = new StartGroupDropdown("", "Root Group", 0);
            drop_cur_item = drop;
            drop_items.Add(drop);
            if (Host.Database != null && Host.Database.IsOpen)
            {
                PwGroup cur_group = Host.Database.RootGroup;
                add_sub_groups(cur_group, 0, Options.startGroupUUID);
            }
            cbStartGroup.Items.Clear();
            cbStartGroup.Items.AddRange(drop_items.ToArray());
            cbStartGroup.SelectedItem = drop_cur_item;
            AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            AutoScaleMode = AutoScaleMode.Font;
        }