private void butThemuser_Click(object sender, EventArgs e) { try { string aid_nhom = ""; try { aid_nhom = treeView1.SelectedNode.Tag.ToString().Split(':')[0]; } catch { } frmNewuser af = new frmNewuser(m_v, aid_nhom, "", m_userid); af.ShowInTaskbar = false; af.ShowDialog(this); f_Load_User(); } catch { } }
private void butSua_Click(object sender, EventArgs e) { try { if (treeView1.SelectedNode.Tag.ToString().Split(':')[1] == "?") { frmNewgroup af = new frmNewgroup(m_v, treeView1.SelectedNode.Tag.ToString().Split(':')[0], m_userid); af.ShowInTaskbar = false; af.ShowDialog(this); f_Load_User(); } else { frmNewuser af = new frmNewuser(m_v, treeView1.SelectedNode.Tag.ToString().Split(':')[0], treeView1.SelectedNode.Tag.ToString().Split(':')[1], m_userid); af.ShowInTaskbar = false; af.ShowDialog(this); f_Load_User(); } } catch { } }