예제 #1
0
 public Frm_addGroup(Frm_main f, int hostid)
 {
     InitializeComponent();
     this.parent = f;
     this.hostid = f.userID;
     this.db     = f.db;
 }
예제 #2
0
 public Frm_leaveGroup(Frm_main f, int hostid, int groupid)
 {
     InitializeComponent();
     this.parent  = f;
     this.hostid  = hostid;
     this.groupid = groupid;
     this.db      = f.db;
 }
예제 #3
0
 public Frm_addFriend(Frm_main f)
 {
     InitializeComponent();
     this.parent = f;
     this.hostID = f.userID;
     this.ilFace = f.ilFace;
     this.db     = f.db;
 }
예제 #4
0
 //获取父窗口的资源
 public Frm_chat(Frm_main f, int hostID, int friendID)
 {
     InitializeComponent();
     this.parent   = f;
     this.hostID   = hostID;
     this.friendID = friendID;
     this.ilFace   = f.ilFace;
     this.db       = f.db;
 }
예제 #5
0
 public Frm_Record(Frm_main f)
 {
     InitializeComponent();
     this.parent         = f;
     ilFace              = f.ilFacethums;
     this.hostID         = f.userID;
     this.db             = f.db;
     treeView1.ImageList = ilFace;
 }
예제 #6
0
 public Frm_info(Frm_main f, int id, bool isEnable)
 {
     InitializeComponent();
     this.parent_main = f;
     this.isEnable    = isEnable;
     this.ilFace      = f.ilFace;
     this.id          = id;
     this.db          = f.db;
 }
예제 #7
0
 //点击登陆按钮
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (checkLogin())
     {
         if (login())
         {
             Frm_main f = new Frm_main(this);
             this.Hide();
             f.Show();
         }
     }
 }
예제 #8
0
 public Frm_systemMessage(Frm_main f, int id, string message, int fromuserid)
 {
     InitializeComponent();
     this.parent        = f;
     this.db            = f.db;
     this.messageid     = id;
     txtMessageGet.Text = message;
     this.fromuserid    = fromuserid;
     this.hostid        = f.userID;
     this.hostNickeName = f.userNickName;
     this.ilFace        = f.ilFace;
 }
예제 #9
0
 public Frm_groupChat(Frm_main f, int groupid)
 {
     InitializeComponent();
     this.parent_main = f;
     this.ilFace      = f.ilFace;
     this.ilFacethums = f.ilFacethums;
     //lvGroupMembers.SmallImageList = ilFacethums;
     treeViewMembers.ImageList = ilFacethums;
     this.GroupId      = groupid;
     this.hostnickname = f.userNickName;
     this.hostId       = f.userID;
     this.db           = f.db;
     this.memberIds    = new List <int>();
 }
예제 #10
0
 public Frm_groupManage(Frm_main f, int groupid, bool isenable)
 {
     InitializeComponent();
     this.parent_main = f;
     this.ilFace      = f.ilFace;
     this.ilFaceThums = f.ilFacethums;
     this.groupid     = groupid;
     this.hostid      = f.userID;
     this.db          = f.db;
     //txtGroupId.Text = this.groupid.ToString();
     //txtGroupId.Enabled = false;
     //txtGroupHostNickName.ReadOnly = true;
     setEnable(isenable);
 }