Exemplo n.º 1
0
        static void Main1(string[] args)
        {
            Keno keno = new Keno();

            //keno.Print();
            //keno.Num = 1234;
            //keno.Date = "05.04.2010";
            //keno.Numberloto = "A";
            //keno.Numberballs = 3;
            //int[] a = {01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
            //keno.Number = a;
            //Console.WriteLine();
            //keno.ArrayListKeno.Add(keno);
            //keno.ArrayLiistKenoPrint(keno.ArrayListKeno);
            //Console.WriteLine();
            keno.ReadFile();
            keno.ArrayLiistKenoPrint(keno.ArrayListKeno);
            Console.WriteLine("\n\n\n");
            keno = (Keno)keno.ArrayListKeno[keno.ArrayListKeno.Count - 1];
            keno.Print();
        }
Exemplo n.º 2
0
 static void Main1(string[] args)
 {
    
     Keno keno = new Keno();
     //keno.Print();
     //keno.Num = 1234;
     //keno.Date = "05.04.2010";
     //keno.Numberloto = "A";
     //keno.Numberballs = 3;
     //int[] a = {01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20};
     //keno.Number = a;
     //Console.WriteLine();
     //keno.ArrayListKeno.Add(keno);
     //keno.ArrayLiistKenoPrint(keno.ArrayListKeno);
     //Console.WriteLine();
     keno.ReadFile();
     keno.ArrayLiistKenoPrint(keno.ArrayListKeno);
     Console.WriteLine("\n\n\n");
     keno = (Keno)keno.ArrayListKeno[keno.ArrayListKeno.Count-1];
     keno.Print();
 }
Exemplo n.º 3
0
        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            Keno   keno    = new Keno();
            MyKeno myKeno  = new MyKeno();
            MyKeno myKeno1 = new MyKeno();

            keno.ReadFile();
            foreach (Keno k in keno.ArrayListKeno)
            {
                myKeno = new MyKeno(k.Num.ToString(), k.Date, k.Numberloto, k.Numberballs.ToString(), k.NumberToString(k.Number));
                myKeno1.ListKeno.Add(myKeno);
                //myKeno.MyKenoAddList(myKeno);
            }
            Listview.Items.Clear();

            ClassKeno.Clear();
            foreach (MyKeno keno1 in myKeno1.ListKeno)
            {
                ClassKeno.Add(keno1);
                Listview.Items.Add(keno1);
            }

            //ClassKeno = new MyClass(myKeno1);
            //ListView listView = new ListView();
            //GridView gridView = new GridView();
            //gridView.AllowsColumnReorder = true;
            //gridView.ColumnHeaderToolTip = "Информация Кено";
            //GridViewColumn gridViewColumn = new GridViewColumn();
            //gridViewColumn.DisplayMemberBinding = new Binding("num");
            //gridViewColumn.Header = "Номер тиража";
            //gridViewColumn.Width = 100;
            //gridView.Columns.Add(gridViewColumn);

            //listView.ItemsSource = new MyClass(myKeno);
            //listView.View = gridView;
            //StackPanel1.Children.Add(listView);
            //Listviev.DataContext = Keno;
        }
Exemplo n.º 4
0
        private void btn1_Click(object sender, RoutedEventArgs e)
        {
            Keno keno = new Keno();
            MyKeno myKeno = new MyKeno();
            MyKeno myKeno1 = new MyKeno();
            keno.ReadFile();
            foreach (Keno k in keno.ArrayListKeno)
            {
                myKeno = new MyKeno(k.Num.ToString(),k.Date, k.Numberloto, k.Numberballs.ToString(), k.NumberToString(k.Number));
                myKeno1.ListKeno.Add(myKeno);
                //myKeno.MyKenoAddList(myKeno);
            }
            Listview.Items.Clear();
           
            ClassKeno.Clear();
            foreach (MyKeno keno1 in myKeno1.ListKeno  )
            {
                ClassKeno.Add(keno1);
                Listview.Items.Add(keno1);
            }
            
            //ClassKeno = new MyClass(myKeno1);
            //ListView listView = new ListView();
            //GridView gridView = new GridView();
            //gridView.AllowsColumnReorder = true;
            //gridView.ColumnHeaderToolTip = "Информация Кено";
            //GridViewColumn gridViewColumn = new GridViewColumn();
            //gridViewColumn.DisplayMemberBinding = new Binding("num");
            //gridViewColumn.Header = "Номер тиража";
            //gridViewColumn.Width = 100;
            //gridView.Columns.Add(gridViewColumn);

            //listView.ItemsSource = new MyClass(myKeno);
            //listView.View = gridView;
            //StackPanel1.Children.Add(listView);
            //Listviev.DataContext = Keno;
        }