Ejemplo n.º 1
0
        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
        }
Ejemplo n.º 2
0
        string constr;    //数据库连接语句

        #endregion

        #region 构造函数
        public Frm_systemConfig(Frm_login f)
        {
            InitializeComponent();
            this.parent           = f;
            this.db               = f.db;
            this.txtSever.Text    = ConfigHelper.getServerHost();
            this.txtDatabase.Text = ConfigHelper.getDbName();
        }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 public Frm_findpwd(Frm_login f)
 {
     InitializeComponent();
     this.parent = f;
     this.db     = f.db;
 }