Exemple #1
0
        private void telephonyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            formSettingExt form = new formSettingExt();

            var result = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                ippbx        = form.Ippbx;
                lblHost.Text = ippbx.hosts;
                lblExt.Text  = ippbx.extension;
                connect();
            }
        }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     logs               = "";
     callState          = false;
     callRinging        = false;
     connectState       = false;
     ippbx              = new Ippbx();
     callDir            = CallDirection.None;
     this.ShowInTaskbar = false;
     db         = new LiteDatabase(@"nwrtelephony");
     collection = db.GetCollection <Recording>("recording");
     dtdt       = new DTMF();
     ringer     = new SoundPlayer(Properties.Resources.telephone_ring_04);
 }