/// <summary>新增职位</summary> private void cmnuPost_Add_Click(object sender, EventArgs e) { frmPost objfrmPost = new frmPost(); if (objfrmPost.ShowDialog() == DialogResult.OK) { this.LoadPostList(); } }
/// <summary>修改职位</summary> private void cmnuPost_Modify_Click(object sender, EventArgs e) { int iPostId = int.Parse(this.tvwPost.SelectedNode.Name); frmPost objfrmPost = new frmPost(iPostId); if (objfrmPost.ShowDialog() == DialogResult.OK) { this.LoadPostList(); } }