Esempio n. 1
0
        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)
            {
            }
        }
Esempio n. 2
0
        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);
                }
            }
        }
Esempio n. 3
0
 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){
     }
 }
Esempio n. 4
0
 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);
         }
     }
 }