Beispiel #1
0
        //显示增加联系人窗体,并将其父窗体设置为当前窗体
        private void 增加联系人SToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAddUser users = new frmAddUser();

            users.MdiParent = this;
            users.Show();
        }
Beispiel #2
0
        //双击查看联系人详细信息并修改
        private void dgvAllUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            string     Name       = this.dgvAllUser.SelectedCells[1].Value.ToString();
            string     Type       = this.dgvAllUser.SelectedCells[2].Value.ToString();
            string     Num        = this.dgvAllUser.SelectedCells[3].Value.ToString();
            frmAddUser frmadduser = new frmAddUser();

            frmadduser.LinkmanName = Name;
            frmadduser.Type        = Type;
            frmadduser.Num         = Num;
            frmadduser.Text        = "修改联系人";
            frmadduser.ShowDialog();
        }