public Frm_main(Frm_login f) { InitializeComponent(); this.parent = f; userID = f.hostID; this.ilFace = f.getImageList(); this.ilFacethums = f.getImageListThums(); this.sideBar1.ImageList = this.ilFace; this.treeView1.ImageList = f.getImageListThums(); this.treeViewGroup.ImageList = f.getImageListThums(); //this.lvGroup.LargeImageList = this.ilFace; //this.lvGroup.SmallImageList = this.ilFacethums; this.db = f.db; cboState.Text = f.hostStateID == 1?"在线":"隐身"; sideBar1.AddGroup("我的好友"); sideBar1.AddGroup("陌生人"); sideBar1.AddGroup("黑名单"); //sideBar1.AddGroup("群聊室"); treeView1.Nodes.Add(new TreeNode("我的好友", 69, 69)); treeView1.Nodes[0].Tag = -1; treeView1.Nodes.Add(new TreeNode("陌生人", 70, 70)); treeView1.Nodes[1].Tag = -1; treeView1.Nodes.Add(new TreeNode("黑名单", 71, 71)); treeView1.Nodes[2].Tag = -1; this.soundFolder = new SoundPlayer("folder.wav"); this.soundMsg = new SoundPlayer("msg.wav"); this.soundSystem = new SoundPlayer("system.wav"); this.isPlay = true; picBusy.Hide(); // this.pictureBox1 }
public Frm_rege(Frm_login f) { InitializeComponent(); label12.ForeColor = Color.Red; btnPre.Hide(); this.parent = f; this.ilface = f.getImageList(); picbimage.Image = ilface.Images[0]; this.db = f.db; getnewCode(); }