public void setSenders()
            {
                ContactManager cm = new ContactManager();
                contacts = cm.getContactList();
                
                foreach (var modem in modems)
                {
                    if (modem.Value.Network=="Dialog")
                    {
                        HSPAModem hm = modem.Value;
                        SMSSender ss = new SMSSender(contacts, hm, s);
                        this.senders.Add(ss);
                        ss.set("Dialog", 12000, new byte[] { 127, 0, 0, 2 },"127.0.0.2");
                    }
                }

            }
        public void setSenders()
        {
            ContactManager cm = new ContactManager();

            contacts = cm.getContactList();

            foreach (var modem in modems)
            {
                if (modem.Value.Network == "Dialog")
                {
                    HSPAModem hm = modem.Value;
                    SMSSender ss = new SMSSender(contacts, hm, s);
                    this.senders.Add(ss);
                    ss.set("Dialog", 12000, new byte[] { 127, 0, 0, 2 }, "127.0.0.2");
                }
            }
        }