Пример #1
0
        public MainWindow()
        {
            InitializeComponent();



            GraphSurface gs = new GraphSurface(Container, row, col);

            Gs = gs;
            Tábla tbl = new Tábla(üc, row, col);

            Tbl = tbl;
        }
Пример #2
0
 public void Elhelyez(int num, GraphSurface gs)
 {
     for (int i = 0; i < num;)
     {
         int sor  = rnd.Next(0, R);
         int oszl = rnd.Next(0, C);
         if (T[sor, oszl] == ÜresCella)
         {
             T[sor, oszl]             = 'K';
             gs.Lb[sor, oszl].Content = 'K';
             i++;
         }
     }
 }