Пример #1
0
        private void Cms2_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            folderButton fbtn = ((folderButton)((ContextMenuStrip)sender).SourceControl);;

            Program.delfolder(fbtn.Text);
            addBookMark();
        }
Пример #2
0
        private void folder_Click(object sender, EventArgs e)
        {
            folderButton fbtn = (folderButton)sender;
            Dictionary <string, Dictionary <string, string> > dict = Program.getFolder();
            Dictionary <string, string> dic = dict[fbtn.Text];

            new bookFolder(dic, PointToScreen(fbtn.Location), webBrowser1, fbtn.Text, mf).Show();
        }
Пример #3
0
        public void addFolder()
        {
            Dictionary <string, Dictionary <string, string> > folder = Program.getFolder();

            foreach (var i in folder)
            {
                folderButton cm = new folderButton();
                cm.Text = i.Key;
                controls.Add(cm);
            }
        }//--------------------------------------------------------------------------------------------------