private void 刷新列表ToolStripMenuItem_Click(object sender, EventArgs e) { comboxGroup.Items.Clear(); mftd.initCommBox(comboxGroup);//刷新 listBox1.Items.Clear(); mftd.initCommBox(listBox1); //同时也刷新显示状态栏当前联系人个数 toolStripStatusLabel1.Text = "当前联系人个数:" + scb.countUsers_B().ToString() + "人" + " "; comboxGroup.SelectedIndex = 0; }
private void addGroup_Load(object sender, EventArgs e) { this.BackgroundImage = imageList1.Images[0]; textBox1.BackColor = Color.FromArgb(207, 216, 63); //初始化列表框分组信息,既是初始化,又是刷新 mftd.initCommBox(listBox1); }
public void initComboBox_B(ComboBox cb) { mftd.initCommBox(cb); }