Beispiel #1
0
 public static Task X(String number2, NumbersTableAdapter adapter, Label label)
 {
     return(Task.Run(() =>
     {
         adapter.Insert(number2, "", "", "");
         label.Text = "" + i;
         i++;
     }));
 }
Beispiel #2
0
        public static async void GeneratePost(List <String> number2, String starts, NumbersTableAdapter adapter, Label label)
        {
            List <String> number = new List <string>();

            for (int a = 0; a < 10; a++)
            {
                for (int b = 0; b < number2.Count; b++)
                {
                    String generated = starts + "" + a + "" + number2[b];
                    //adapter.Insert(generated, "", "", "");
                    await X(generated, adapter, label);
                }
            }

            // return number;
        }
Beispiel #3
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);
        }