Пример #1
0
        private void Tb_lxfs_FocusedChanged(object sender, EventArgs e)
        {
            DuiTextBox searchText = sender as DuiTextBox;

            if (searchText != null)
            {
                if (searchText.Text == "你的联系方式(QQ/邮箱/手机),可不填")
                {
                    searchText.Text      = "";
                    searchText.ForeColor = Color.Black;
                }
                else
                {
                    if (string.IsNullOrEmpty(searchText.Text))
                    {
                        searchText.Text      = "你的联系方式(QQ/邮箱/手机),可不填";
                        searchText.ForeColor = Color.FromArgb(255, 171, 171, 171);
                    }
                    else
                    {
                        lxfs = searchText.Text;
                    }
                }
            }
        }
Пример #2
0
        private void UpdateForm_Load(object sender, EventArgs e)
        {
            st.Interval               = 100;
            st.Enabled                = true;
            st.Elapsed               += St_Elapsed;
            customHxjdt.Size          = new Size(250, 250);
            customHxjdt.Location      = new Point((lbc.Width - 250) / 2, 0);
            customHxjdt.Value         = 0;
            customHxjdt.Lcp           = System.Drawing.Drawing2D.LineCap.Round;
            customHxjdt.CircularWidth = 25;
            customHxjdt.BackColor     = Color.Transparent;
            customHxjdt.MainColor     = pes.BackColor;
            lbc.DUIControls.Add(customHxjdt);
            this.BackColor = Color.FromArgb(185, pes.BackColor);
            foreach (DuiBaseControl item in lbc.DUIControls)
            {
                if (item is DuiTextBox)
                {
                    DuiTextBox gxnr = item as DuiTextBox;
                    gxnr.Text = pes.VerNo + "\r\n" + pes.UpdateContent.Replace("---", "\r\n");
                }
            }
            HttpDldFile fileDownload = new HttpDldFile();
            Thread      thread       = new Thread(() => fileDownload.Download(pes.DownloadUrl, AppDomain.CurrentDomain.BaseDirectory + @"\" + pes.MainApplicationName + ".exe", customHxjdt));

            thread.Start();
        }
Пример #3
0
 /// <summary>
 /// 搜索按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Btn_search_MouseClick(object sender, DuiMouseEventArgs e)
 {
     foreach (var item in BaseControl_Search.DUIControls)
     {
         if (item is DuiButton)
         {
             DuiButton btn_search = item as DuiButton;
             foreach (var citem in btn_search.Controls)
             {
                 if (citem is DuiTextBox)
                 {
                     DuiTextBox searchText = citem as DuiTextBox;
                     if (!string.IsNullOrEmpty(searchText.Text) && searchText.Text != "输入关键字进行搜索")
                     {
                         isSearch            = true;
                         startNo             = "1";
                         userEntity.menuName = searchText.Text;
                         Thread thread = new Thread(() => updateImgList(searchText.Text, startNo));
                         thread.Start();
                     }
                     else
                     {
                         MessageForm mf = new MessageForm("请输入关键字进行搜索");
                         mf.ShowDialog();
                     }
                 }
             }
         }
     }
 }
Пример #4
0
 /// <summary>
 /// 字体选中
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MenuItem0_Click(object sender, EventArgs e)
 {
     try
     {
         string sel = (sender as ToolStripMenuItem).Tag.ToString();
         if (this._KHNode.FontName != sel)
         {
             this._KHNode.FontName   = sel;
             this._KHNode.UpdateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             new KHNodeService().Update(this._KHNode);
             //改变选中对象
             ToolStripMenuItem item = null;
             for (int i = 0; i < this.tsmName.DropDownItems.Count; i++)
             {
                 item = this.tsmName.DropDownItems[i] as ToolStripMenuItem;
                 if (item.Name == "FontNameMenuItem" + sel)
                 {
                     item.Checked    = true;
                     item.CheckState = System.Windows.Forms.CheckState.Checked;
                 }
                 else
                 {
                     item.Checked    = false;
                     item.CheckState = System.Windows.Forms.CheckState.Unchecked;
                 }
             }
             //设置字体
             DuiTextBox txtBox = this.lblContent.DUIControls[0] as DuiTextBox;
             if (txtBox != null)
             {
                 FontStyle fontStyle = FontStyle.Italic;
                 if (this._KHNode.Bold == 1)
                 {
                     fontStyle = FontStyle.Bold;
                 }
                 txtBox.Font = new System.Drawing.Font(this._KHNode.FontName, 18F, fontStyle, GraphicsUnit.Point);
             }
         }
     }
     catch (Exception ex)
     {
         CommonMethod.WriteLogErr(ex.Message);
     }
 }
Пример #5
0
        /// <summary>
        /// 搜索框获取焦点后事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SearchText_FocusedChanged(object sender, EventArgs e)
        {
            DuiTextBox searchText = sender as DuiTextBox;

            if (searchText != null)
            {
                if (searchText.Text == "输入关键字进行搜索")
                {
                    searchText.Text      = "";
                    searchText.ForeColor = Color.White;
                }
                else
                {
                    if (string.IsNullOrEmpty(searchText.Text))
                    {
                        searchText.Text      = "输入关键字进行搜索";
                        searchText.ForeColor = Color.FromArgb(255, 171, 171, 171);
                    }
                }
            }
        }
Пример #6
0
        /// <summary>
        /// 颜色选中
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuItem3_Click(object sender, EventArgs e)
        {
            try
            {
                string sel = (sender as ToolStripMenuItem).Tag.ToString();
                if (sel != this._KHNode.FontColor)
                {
                    this._KHNode.FontColor  = sel;
                    this._KHNode.UpdateDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                    new KHNodeService().Update(this._KHNode);
                    //改变选中对象
                    ToolStripMenuItem item = null;
                    for (int i = 0; i < this.tmsColor.DropDownItems.Count; i++)
                    {
                        item = this.tmsColor.DropDownItems[i] as ToolStripMenuItem;
                        if (item.Name == "FontColorMenuItem" + sel)
                        {
                            item.Checked    = true;
                            item.CheckState = System.Windows.Forms.CheckState.Checked;
                        }
                        else
                        {
                            item.Checked    = false;
                            item.CheckState = System.Windows.Forms.CheckState.Unchecked;
                        }
                    }

                    //设置
                    DuiTextBox txtBox = this.lblContent.DUIControls[0] as DuiTextBox;
                    if (txtBox != null)
                    {
                        txtBox.ForeColor = Color.FromName(sel);
                    }
                }
            }
            catch (Exception ex)
            {
                CommonMethod.WriteLogErr(ex.Message);
            }
        }
Пример #7
0
        public frmNode(KHNode node)
        {
            InitializeComponent();
            _KHNode = node;

            Rectangle workAreaRectangle = Screen.GetWorkingArea(this);

            if (_KHNode.Width != 0 && _KHNode.Height != 0)
            {
                this.Size = new Size(_KHNode.Width, _KHNode.Height);
            }

            if (_KHNode.LocationX != 0 && _KHNode.LocationY != 0)
            {
                this.Location = new Point(_KHNode.LocationX, _KHNode.LocationY);
            }

            DuiTextBox txtBox = this.lblContent.DUIControls[0] as DuiTextBox;

            if (txtBox != null)
            {
                if (!string.IsNullOrEmpty(node.Content))
                {
                    txtBox.Text = node.Content;
                }
                else
                {
                    txtBox.Focus();
                }

                FontStyle fontStyle = FontStyle.Italic;
                if (node.Bold == 1)
                {
                    fontStyle = FontStyle.Bold;
                }
                txtBox.Font            = new System.Drawing.Font(node.FontName, node.FontSize, fontStyle, GraphicsUnit.Point);
                txtBox.ForeColor       = Color.FromName(node.FontColor);
                txtBox.FocusedChanged += TxtBox_FocusedChanged;
            }
        }
Пример #8
0
        private void SendYjForm_Load(object sender, EventArgs e)
        {
            this.BackColor = Color.FromArgb(185, pes.pes.BackColor);
            if (pes.BackGroundSkin != null)
            {
                BackGroundSkin = pes.BackGroundSkin;
            }
            btn_send.BaseColor = pes.pes.BackColor;
            foreach (DuiBaseControl item in panel_main.DUIControls)
            {
                switch (item.Name)
                {
                case "rb_cpjy":
                case "rb_bugfk":
                    dr_fklx = item as DuiRadioButton;
                    dr_fklx.CheckRectColor  = pes.pes.BackColor;
                    dr_fklx.CheckFlagColor  = pes.pes.BackColor;
                    dr_fklx.CheckedChanged += Dr_fklx_CheckedChanged;
                    break;

                case "tb_fkyj":
                    tb_fkyj              = item as DuiTextBox;
                    tb_fkyj.Invalidated += Tb_fkyj_Invalidated;
                    break;

                case "tb_lxfs":
                    tb_lxfs = item as DuiTextBox;
                    tb_lxfs.FocusedChanged += Tb_lxfs_FocusedChanged;
                    break;

                case "lb_yjlen":
                    dl_yjlen = item as DuiLabel;
                    break;

                default:
                    break;
                }
            }
        }
Пример #9
0
        private void BackForm_Load(object sender, EventArgs e)
        {
            foreach (var item in BaseControl_Search.DUIControls)
            {
                if (item is DuiButton)
                {
                    DuiButton btn_search = item as DuiButton;
                    if (btn_search.Name == "btn_search")
                    {
                        btn_search.MouseClick += Btn_search_MouseClick;
                    }
                    if (btn_search.Name == "btn_searchtext")
                    {
                        foreach (var citem in btn_search.Controls)
                        {
                            if (citem is DuiTextBox)
                            {
                                DuiTextBox searchText = citem as DuiTextBox;
                                searchText.FocusedChanged += SearchText_FocusedChanged;
                            }
                        }
                    }
                }
            }
            userEntity.email  = "";
            userEntity.psw    = "";
            userEntity.imei   = "4a46fa50b289ff3c";
            userEntity.sellid = "28825252";
            bimg.MemberLogin(userEntity);
            //添加默认字段
            userEntity.menuName = "0";
            startNo             = "1";
            nCount   = "0";
            isSearch = false;
            Thread thread = new Thread(() => addBackImg());

            thread.Start();
        }
Пример #10
0
 /// <summary>
 /// 选择缓存目录事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Btn_selectCachePath_MouseClick(object sender, DuiMouseEventArgs e)
 {
     try
     {
         System.Windows.Forms.FolderBrowserDialog dialog = new System.Windows.Forms.FolderBrowserDialog();
         dialog.Description = "请选择缓存目录";
         if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             DuiTextBox actb = getThisBaseControl(layeredPanel_xzsz, "text_cachePath") as DuiTextBox;
             if (string.IsNullOrEmpty(dialog.SelectedPath))
             {
                 actb.Text = "请选择缓存保存目录";
             }
             else
             {
                 actb.Text = dialog.SelectedPath;
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #11
0
        private void setDefaultStyle()
        {
            this.BackColor = Color.FromArgb(185, pes.pes.BackColor);
            if (pes.BackGroundSkin != null)
            {
                BackGroundSkin = pes.BackGroundSkin;
                this.BackColor = Color.Transparent;
            }
            btn_point.BaseColor = Color.Red;
            btn_cg.ForeColor    = Color.FromArgb(255, pes.pes.BackColor);
            layeredPanel_cg.BringToFront();
            //常规界面相关处理
            foreach (DuiBaseControl item in layeredPanel_cg.DUIControls)
            {
                switch (item.Name)
                {
                case "ck_qd":
                    Ck_AutoStart = item as DuiCheckBox;
                    Ck_AutoStart.CheckRectColor  = Color.FromArgb(155, pes.pes.BackColor);
                    Ck_AutoStart.CheckFlagColor  = Color.FromArgb(155, pes.pes.BackColor);
                    Ck_AutoStart.CheckedChanged += Ck_AutoStart_CheckedChanged;
                    Ck_AutoStart.Checked         = pes.pes.AutoStart;
                    break;

                case "rd_min":
                case "rd_close":
                    RadioButton_CloseMode = item as DuiRadioButton;
                    RadioButton_CloseMode.CheckRectColor  = Color.FromArgb(155, pes.pes.BackColor);
                    RadioButton_CloseMode.CheckFlagColor  = Color.FromArgb(155, pes.pes.BackColor);
                    RadioButton_CloseMode.CheckedChanged += RadioButton_CloseMode_CheckedChanged;
                    if ((pes.pes.CloseMode == "isClose") && RadioButton_CloseMode.Name == "rd_close")
                    {
                        (item as DuiRadioButton).Checked = true;
                    }
                    else if ((pes.pes.CloseMode == "isMin") && RadioButton_CloseMode.Name == "rd_min")
                    {
                        (item as DuiRadioButton).Checked = true;
                    }
                    else
                    {
                        (item as DuiRadioButton).Checked = false;
                    }
                    break;

                case "":

                    break;

                default:
                    break;
                }
            }
            //壁纸切换界面相关处理
            foreach (DuiBaseControl item in layeredPanel_qhbz.DUIControls)
            {
                switch (item.Name)
                {
                case "ck_qd":
                    Ck_IsSwitchWallpaper = item as DuiCheckBox;
                    Ck_IsSwitchWallpaper.CheckRectColor  = Color.FromArgb(155, pes.pes.BackColor);
                    Ck_IsSwitchWallpaper.CheckFlagColor  = Color.FromArgb(155, pes.pes.BackColor);
                    Ck_IsSwitchWallpaper.Checked         = pes.pes.IsSwitchWallpaper;
                    Ck_IsSwitchWallpaper.CheckedChanged += Ck_IsSwitchWallpaper_CheckedChanged;
                    break;

                case "db_timedw":
                    ComboBox_InterValTimeUnit                       = item as DuiComboBox;
                    ComboBox_InterValTimeUnit.BackColor             = Color.FromArgb(155, pes.pes.BackColor);
                    ComboBox_InterValTimeUnit.SelectedIndexChanged += ComboBox_InterValTimeUnit_SelectedIndexChanged;
                    if (pes.pes.InterValTime < 60)
                    {
                        ComboBox_InterValTimeUnit.SelectedIndex = 0;
                        TextBox_InterValTime.Text = pes.pes.InterValTime.ToString();
                    }
                    else if (pes.pes.InterValTime < 3600)
                    {
                        ComboBox_InterValTimeUnit.SelectedIndex = 1;
                        TextBox_InterValTime.Text = (pes.pes.InterValTime / 60).ToString();
                    }
                    else
                    {
                        ComboBox_InterValTimeUnit.SelectedIndex = 2;
                        TextBox_InterValTime.Text = (pes.pes.InterValTime / 3600).ToString();
                    }
                    break;

                case "tb_timeStr":
                    TextBox_InterValTime              = item as DuiTextBox;
                    TextBox_InterValTime.BackColor    = Color.FromArgb(155, pes.pes.BackColor);
                    TextBox_InterValTime.AutoHeight   = true;
                    TextBox_InterValTime.Invalidated += TextBox_InterValTime_TextChanged;
                    //TextBox_InterValTime.Text = pes.pes.InterValTime.ToString();
                    break;

                default:
                    if (item is DuiButton && item.Name.Contains("btn_"))
                    {
                        DuiButton Button_SwitchWallpaperType = item as DuiButton;
                        Button_SwitchWallpaperType.Cursor          = System.Windows.Forms.Cursors.Hand;
                        Button_SwitchWallpaperType.MouseClick     += Button_SwitchWallpaperType_MouseClick;
                        Button_SwitchWallpaperType.BaseColor       = Color.Transparent;
                        Button_SwitchWallpaperType.BackgroundImage = Properties.Resources.btn_n;
                        Button_SwitchWallpaperType.IsPureColor     = false;
                        Button_SwitchWallpaperType.Tag             = false.ToString();
                        foreach (var WallpaperType in pes.pes.SwitchWallpaperTypes)
                        {
                            if (item.Name.Replace("btn_", "") == WallpaperType.ToString())
                            {
                                Button_SwitchWallpaperType.Tag             = true.ToString();
                                Button_SwitchWallpaperType.BackgroundImage = Properties.Resources.btn_select_n;
                            }
                        }
                        Button_SwitchWallpaperType.BackgroundImageLayout = ImageLayout.Stretch;
                    }
                    break;
                }
            }
            //下载设置界面相关处理
            foreach (DuiBaseControl item in layeredPanel_xzsz.DUIControls)
            {
                switch (item.Name)
                {
                case "rd_SizeForThumb":
                case "rd_SizeFor1600900":
                case "rd_SizeFor1440900":
                case "rd_SizeFor12801024":
                case "rd_SizeFor1024768":
                case "rd_SizeFor1280800":
                    RadioButton_picSize = item as DuiRadioButton;
                    RadioButton_picSize.CheckFlagColor  = Color.FromArgb(155, pes.pes.BackColor);
                    RadioButton_picSize.CheckRectColor  = Color.FromArgb(155, pes.pes.BackColor);
                    RadioButton_picSize.CheckedChanged += RadioButton_picSize_CheckedChanged;
                    if ("rd_SizeFor" + (pes.pes.PicSize == "default" ? "Thumb" : pes.pes.PicSize) == item.Name)
                    {
                        RadioButton_picSize.Checked = true;
                    }
                    else
                    {
                        RadioButton_picSize.Checked = false;
                    }
                    break;

                case "text_downloadPath":
                    lb_downloadPath           = item as DuiTextBox;
                    lb_downloadPath.BackColor = Color.FromArgb(155, pes.pes.BackColor);
                    lb_downloadPath.Text      = (String.IsNullOrEmpty(pes.pes.DownloadPath) ? AppDomain.CurrentDomain.BaseDirectory + @"ImageWallpaper\" : pes.pes.DownloadPath);
                    break;

                case "btn_selectDownloadPath":
                    btn_selectDownloadPath             = item as DuiButton;
                    btn_selectDownloadPath.Cursor      = System.Windows.Forms.Cursors.Hand;
                    btn_selectDownloadPath.MouseClick += Btn_selectDownloadPath_MouseClick;
                    break;

                case "text_cachePath":
                    lb_cachePath           = item as DuiTextBox;
                    lb_cachePath.BackColor = Color.FromArgb(155, pes.pes.BackColor);
                    lb_cachePath.Text      = (String.IsNullOrEmpty(pes.pes.CachePath) ? AppDomain.CurrentDomain.BaseDirectory + @"CacheWallpaper\" : pes.pes.CachePath);
                    if (lb_nowCacheSize != null && lb_cachePath != null)
                    {
                        lb_nowCacheSize.Text = "当前缓存:" + GetDirectoryLength(lb_cachePath.Text) / (1024 * 1024) + "MB";
                    }

                    break;

                case "btn_selectCachePath":
                    btn_selectCachePath             = item as DuiButton;
                    btn_selectCachePath.Cursor      = System.Windows.Forms.Cursors.Hand;
                    btn_selectCachePath.MouseClick += Btn_selectCachePath_MouseClick;
                    break;

                case "lb_nowCacheSize":
                    lb_nowCacheSize = item as DuiLabel;
                    if (lb_cachePath != null && lb_nowCacheSize != null)
                    {
                        lb_nowCacheSize.Text = "当前缓存:" + GetDirectoryLength(lb_cachePath.Text) / (1024 * 1024) + "MB";
                    }
                    break;

                case "lb_clearCache":
                    lb_clearCache             = item as DuiLabel;
                    lb_clearCache.Cursor      = System.Windows.Forms.Cursors.Hand;
                    lb_clearCache.MouseClick += Lb_clearCache_MouseClick;
                    break;

                default:
                    break;
                }
            }
            //关于界面相关处理
            foreach (DuiBaseControl item in layeredPanel_gy.DUIControls)
            {
                switch (item.Name)
                {
                case "lb_ver":
                    lb_ver      = item as DuiLabel;
                    lb_ver.Text = pes.pes.VerNo;
                    break;

                case "btn_update":
                    btn_update             = item as DuiButton;
                    btn_update.Cursor      = System.Windows.Forms.Cursors.Hand;
                    btn_update.BaseColor   = Color.FromArgb(155, pes.pes.BackColor);
                    btn_update.MouseClick += Btn_update_MouseClick;
                    break;

                case "btn_sendyj":
                    btn_sendyj             = item as DuiButton;
                    btn_sendyj.Cursor      = System.Windows.Forms.Cursors.Hand;
                    btn_sendyj.BaseColor   = Color.FromArgb(155, pes.pes.BackColor);
                    btn_sendyj.MouseClick += Btn_sendyj_MouseClick;
                    break;

                case "lb_mxnr1":
                    lb_mxnr1             = item as DuiLabel;
                    lb_mxnr1.Cursor      = System.Windows.Forms.Cursors.Hand;
                    lb_mxnr1.MouseClick += Lb_mxnr1_MouseClick;
                    break;

                case "lb_mxnr2":
                    lb_mxnr2             = item as DuiLabel;
                    lb_mxnr2.Cursor      = System.Windows.Forms.Cursors.Hand;
                    lb_mxnr2.MouseClick += Lb_mxnr1_MouseClick;
                    break;

                case "lb_zzemail":
                    lb_zzemail             = item as DuiLabel;
                    lb_zzemail.Cursor      = System.Windows.Forms.Cursors.Hand;
                    lb_zzemail.MouseClick += Lb_zzemail_MouseClick;
                    break;

                default:
                    break;
                }
            }
        }
Пример #12
0
        private void Tb_fkyj_Invalidated(object sender, System.Windows.Forms.InvalidateEventArgs e)
        {
            DuiTextBox dtb = sender as DuiTextBox;

            dl_yjlen.Text = (1000 - (dtb.Text.Length)).ToString();
        }
Пример #13
0
        public bool AddList(string name)
        {
            bool Searched = false;

            foreach (MusicListItem a in Groups)
            {
                if (a.Name == "list_" + name)
                {
                    Searched = true;
                }
                else
                {
                    Searched = false;
                }
            }
            if (!Searched)
            {
                DuiBaseControl b = new DuiBaseControl();
                b.Name      = "list_" + name;
                b.Size      = new Size(Width, 35);
                b.BackColor = Color.Transparent;
                b.Tag       = "List";
                Borders b1 = new Borders(b);
                b1.BottomWidth = 1;
                b1.BottomColor = Color.FromArgb(50, 0, 0, 0);
                b.Borders      = b1;
                DuiLabel l = new DuiLabel();
                l.TextRenderMode = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
                l.Location       = new Point(30, 8);
                l.AutoSize       = true;
                l.Font           = new Font("微软雅黑", 11F, FontStyle.Bold);
                l.ForeColor      = Color.White;
                l.Text           = name;
                l.Name           = "name";
                DuiLabel l2 = new DuiLabel();

                l2.Name = "Count";
                if (name == "我喜欢")
                {
                    l2.Location = new Point(l.Width + 43, 11);
                }
                else
                {
                    l2.Location = new Point(l.Width + 25, 11);
                }
                l2.AutoSize       = true;
                l2.TextRenderMode = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
                l2.Font           = new Font("微软雅黑", 9F);
                l2.ForeColor      = Color.White;
                l2.Text           = "[列表无歌曲,可直接把歌曲拖到这里来哦]";
                l2.Tag            = (Items.Count + 1).ToString();
                DuiButton btn = new DuiButton();
                btn.Size         = new Size(22, 22);
                btn.Location     = new Point(b.Width - 35, 8);
                btn.NormalImage  = Properties.Resources.btn_list_menu_n;
                btn.HoverImage   = Properties.Resources.btn_list_menu_h;
                btn.PressedImage = Properties.Resources.btn_list_menu_p;
                btn.MouseClick  += Btn_MouseClick;
                btn.Tag          = name;
                DuiPictureBox ilike = new DuiPictureBox();
                if (name == "我喜欢")
                {
                    ilike.Size     = new Size(22, 22);
                    ilike.Location = new Point(78, 8);
                    ilike.Image    = Properties.Resources.btn_iliked_p;
                }
                btn.Tag = name;
                DuiPictureBox more = new DuiPictureBox();
                more.Size     = new Size(23, 23);
                more.Location = new Point(10, 7);
                if (name == "默认列表")
                {
                    more.Image = Properties.Resources.btn_more_close;
                    more.Tag   = "Open";
                }
                else
                {
                    more.Image = Properties.Resources.btn_more_open;
                    more.Tag   = "Close";
                }
                more.MouseClick += More_MouseClick;

                more.Name = "more";

                DuiTextBox tb = new DuiTextBox();
                tb.Size            = new Size(100, 22);
                tb.Location        = new Point(31, 9);
                tb.Visible         = false;
                tb.Name            = "tb";
                tb.ForeColor       = Color.White;
                tb.FocusedChanged += Tb_FocusedChanged;
                tb.KeyDown        += Tb_KeyDown;
                tb.Font            = new Font("微软雅黑", 9F);

                b.Controls.Add(tb);
                b.Controls.Add(btn);
                b.Controls.Add(l);
                b.Controls.Add(l2);
                b.Controls.Add(more);
                if (name == "我喜欢")
                {
                    b.Controls.Add(ilike);
                }
                b.MouseDoubleClick += B_MouseDoubleClick;

                Items.Add(b);
                RefreshList();

                MusicListItem m = new MusicListItem(name, new List <MusicItem>());
                Groups.Add(m);
            }

            GC.Collect();

            return(!Searched);
        }