예제 #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)
            {
            }
        }
예제 #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);
                }
            }
        }
예제 #3
0
파일: wfrm_Main.cs 프로젝트: dioptre/nkd
 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){
     }
 }
예제 #4
0
파일: wfrm_Main.cs 프로젝트: dioptre/nkd
 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);
         }
     }
 }