Example #1
0
        private void m_lnkAjouterChamp_LinkClicked(object sender, EventArgs e)
        {
            CChampAlarmeTest champ = new CChampAlarmeTest();

            if (CFormEditeChampAlarme.EditeChamp(champ))
            {
                if (m_typeAlarme.AddChamp(champ))
                {
                    FillListeChamps();
                }
            }
        }
Example #2
0
        //--------------------------------------
        private void m_wndListeChamps_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = m_wndListeChamps.HitTest(e.X, e.Y);

            if (info != null && info.Item != null)
            {
                IChampAlarme champ = info.Item.Tag as IChampAlarme;
                if (champ != null)
                {
                    if (CFormEditeChampAlarme.EditeChamp(champ))
                    {
                        FillItem(info.Item, champ);
                    }
                }
            }
        }