Esempio n. 1
0
        private void tmn_Hotkey_KSK_Click(object sender, EventArgs e)
        {
            try
            {
                if (m_loaiform != "" && m_userid != "")
                {
                    frmHotkey af = new frmHotkey(m_v, m_userid, m_loaiform, "1");
                    af.ShowInTaskbar = false;
                    if (af.ShowDialog() == DialogResult.OK)
                    {
                        if (af.s_hotkey != "")
                        {
                            string ahotkey = af.s_hotkey;
                            string aghichu = af.s_ghichu;

                            m_v.execute_data("delete from medibv.v_optionhotkey_ksk where userid=" + m_userid + " and loai=" + m_loaiform + " and hotkey='" + af.s_hotkey + "'");
                            foreach (string atmp in f_GetItem().Split(','))
                            {
                                m_v.upd_v_optionhotkey_ksk(decimal.Parse(m_userid), decimal.Parse(m_loaiform), ahotkey, decimal.Parse(atmp), aghichu);
                            }
                            m_dshotkey_ksk = m_v.f_get_hotkey_ksk(m_userid, m_loaiform);
                            m_reset        = true;
                        }
                    }
                }
            }
            catch
            {
            }
        }