Esempio n. 1
0
        private void 添加好友ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FriendEdit frm = new FriendEdit {
                FE = null
            };

            frm.cuan = this.cuan;
            frm.ShowDialog();
        }
Esempio n. 2
0
 private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (skinDataGridView1.SelectedRows.Count > 0)
     {
         var        id   = Convert.ToString(skinDataGridView1.SelectedRows[0].Cells[0].Value);
         var        item = db.FE.FirstOrDefault(t => t.name == id);
         FriendEdit frm  = new FriendEdit {
             FE = item
         };
         frm.cuan = this.cuan;
         frm.ShowDialog();
     }
 }