private void m_pTab_Users_Edit_Click(object sender, EventArgs e) { wfrm_User frm = new wfrm_User(m_pDsSettings, (DataRow)m_pTab_Users_List.SelectedItems[0].Tag); if (frm.ShowDialog(this) == DialogResult.OK) { } }
private void m_pTab_Users_Add_Click(object sender, EventArgs e) { wfrm_User frm = new wfrm_User(m_pDsSettings); if (frm.ShowDialog(this) == DialogResult.OK) { m_pTab_Users_List.Items.Clear(); foreach (DataRow dr in m_pDsSettings.Tables["Users"].Rows) { ListViewItem it = new ListViewItem(dr["UserName"].ToString()); it.Tag = dr; m_pTab_Users_List.Items.Add(it); } } }
private void m_pTab_Users_Edit_Click(object sender, EventArgs e) { wfrm_User frm = new wfrm_User(m_pDsSettings,(DataRow)m_pTab_Users_List.SelectedItems[0].Tag); if(frm.ShowDialog(this) == DialogResult.OK){ } }
private void m_pTab_Users_Add_Click(object sender, EventArgs e) { wfrm_User frm = new wfrm_User(m_pDsSettings); if(frm.ShowDialog(this) == DialogResult.OK){ m_pTab_Users_List.Items.Clear(); foreach(DataRow dr in m_pDsSettings.Tables["Users"].Rows){ ListViewItem it = new ListViewItem(dr["UserName"].ToString()); it.Tag = dr; m_pTab_Users_List.Items.Add(it); } } }