Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();

            incomingParser = new IncomingsParser(true);
            messagesManager = new MessagesManager(incomingParser);
            logger = new Logger();

            messagesManager.SmsSend += new MessagesManager.SmsSendEventHandler(messagesManager_SmsSend);

            logViewControl1.Logger = logger;
        }
Esempio n. 2
0
        public MessagesManager(IncomingsParser incomingParser)
        {
            this.incomingParser = incomingParser;
            incomingParser.CallMissed += new IncomingsParser.CallEventHandler(incomingParser_CallMissed);

            messagesDataSet = new MessagesDataSet();
            messagesDataSet.BeginInit();
            messagesDataSet.DataSetName = "MessagesDataSet";
            messagesDataSet.Prefix = "";
            messagesDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            messagesDataSet.EndInit();

            numbersTableAdapter = new NumbersTableAdapter();
            numbersTableAdapter.Fill(messagesDataSet.Numbers);
            messagesTableAdapter = new MessagesTableAdapter();
            messagesTableAdapter.Fill(messagesDataSet.Messages);
        }